Jarred-Sumner/mactrace
Minimal strace for macOS - trace system calls of any process using Instruments.
unreviewed-ai-risk
- Repository: https://github.com/Jarred-Sumner/mactrace
- Commit:
f2ddd4b9cb66e3476476746f238652b3163e1889 - Generated: 2026-11-13T23:59:14+00:00
- Scorer 0.1.0, scoring prov-4+qual-2+sec-2, report schema v2
Scores
Unreviewed AI code risk: a large share of this code is explicitly AI-attributed, and its tests or review process are weak while quality or security scores are low.
| Pillar | Score | Signal | Confidence | Coverage |
|---|---|---|---|---|
| AI provenance (estimated AI-generated share) | 100 | explicit | 71% | 100% |
| Code quality | 52 | weak | 90% | 100% |
| Security | 77 | adequate | 85% | 100% |
AI provenance
Explicit AI attribution on 100% of first-party code added; an estimated 100% including velocity signals.
- Explicitly attributed share (lower bound): 100.0%
- Unattributed share in AI-consistent velocity bursts: 0.0%
- Estimated AI-generated share: 100.0%
| AI tool | Attributed commits | Lines added |
|---|---|---|
| Claude Code | 3 | 1,609 |
- AI tooling configured in repo: claude-code
Current source lines last changed by AI-attributed commits: 1,609 of 1,609.
Too few lines in one group to compare finding densities.
| Month | Lines added | Attributed to AI |
|---|---|---|
| 2026-01 | 1,609 | 100% |
Evidence
- Claude Code: trailer 'Co-Authored-By: Claude' (f2ddd4b9cb66)
- Claude Code: trailer 'Co-Authored-By: Claude' (a5ddd276ff93)
- Claude Code: trailer 'Co-Authored-By: Claude' (4eed70db05bd)
- CLAUDE.md (claude-code configuration) (CLAUDE.md)
AI provenance describes how code was produced; it is not a quality judgment. Unless attribution is explicit, these are signals consistent with AI generation, not proof. Squash/rebase workflows, imported code, and rewritten history reduce accuracy.
Code quality
Code quality is weak: test-to-source ratio 0.00, no CI test run detected; 22% of function code in complex or long functions; 0% duplicated lines. Weakest area: testing.
| Area | Score |
|---|---|
| Complexity (lizard) | 52 |
| Duplication | 100 |
| Code smells (Opengrep) | 63 |
| Tests and CI | 0 |
| Documentation | 65 |
| Type safety | 100 |
| Process (Scorecard review/maintenance) | n/a |
- Functions: 147; mean complexity 2.1, 90th percentile 4; 2 complex and 0 long functions
- Duplicated lines: 0.0% of 1,319 compared
- Tests: 0 test lines for 1,609 source lines (ratio 0.00); CI test commands: none detected; 0% of recent source commits also change tests
- Docs missing or thin: contributing, changelog
Most complex functions:
- exportTrace in lib/exporter.ts: complexity 30, 92 lines
- formatEvent in lib/formatter.ts: complexity 18, 52 lines
Security
Security posture is adequate: 7 known vulnerabilities in 1 dependencies. Weakest area: posture.
| Area | Score |
|---|---|
| Secrets (gitleaks, tree + history) | 100 |
| Static analysis (Opengrep) | 85 |
| Vulnerable dependencies (OSV) | 78 |
| CI workflows (zizmor) | n/a |
| Posture (policy, updates, signing, lockfiles) | 0 |
| OpenSSF Scorecard | n/a |
-
Known vulnerabilities: 7 in 1 packages (critical 1, high 2, medium 2, low 2)
-
Posture checks passed: lockfiles; missing: security policy, dependency updates, signed commits
Top findings
| Severity | Finding | Location |
|---|---|---|
| critical | osv/GHSA-m7jm-9gc2-mpf2: fast-xml-parser@4.5.3 (npm) is affected by GHSA-m7jm-9gc2-mpf2 |
bun.lock |
| high | osv/GHSA-8gc5-j5rx-235r: fast-xml-parser@4.5.3 (npm) is affected by GHSA-8gc5-j5rx-235r |
bun.lock |
| high | osv/GHSA-jmr7-xgp7-cmfj: fast-xml-parser@4.5.3 (npm) is affected by GHSA-jmr7-xgp7-cmfj |
bun.lock |
| medium | opengrep/javascript.lang.security.audit.detect-non-literal-fs-filename: Detected that function argument traceFile has entered the fs module. An attacker could potentially control the location of this file, to include going backwards in the directory with '../'. To address this, ensure that user-controlled variables in file paths are validated. [confidence low] |
index.ts:82 |
| medium | opengrep/javascript.lang.security.html-in-template-string: This template literal looks like HTML and has interpolated variables. These variables are not HTML-encoded by default. If the variables contain HTML tags, these may be interpreted by the browser, resulting in cross-site scripting (XSS). [confidence low] |
lib/formatter.ts:42 |
| medium | opengrep/javascript.lang.security.html-in-template-string: This template literal looks like HTML and has interpolated variables. These variables are not HTML-encoded by default. If the variables contain HTML tags, these may be interpreted by the browser, resulting in cross-site scripting (XSS). [confidence low] |
lib/formatter.ts:290 |
| medium | osv/GHSA-gh4j-gqv2-49f6: fast-xml-parser@4.5.3 (npm) is affected by GHSA-gh4j-gqv2-49f6 |
bun.lock |
| medium | osv/GHSA-jp2q-39xq-3w4g: fast-xml-parser@4.5.3 (npm) is affected by GHSA-jp2q-39xq-3w4g |
bun.lock |
| low | osv/GHSA-474x-hrwr-fgx4: fast-xml-parser@4.5.3 (npm) is affected by GHSA-474x-hrwr-fgx4 |
bun.lock |
| low | osv/GHSA-fj3w-jwp8-x2g3: fast-xml-parser@4.5.3 (npm) is affected by GHSA-fj3w-jwp8-x2g3 |
bun.lock |
Static signals only: the scorer never runs the project's code. Secret findings are pattern matches that were not verified, and secret values are never stored.
Repository profile
- Source lines: 1,609; test lines: 0
| Language | Lines |
|---|---|
| TypeScript | 1,609 |