Skip to content

Releases

agentsapper 0.2.0

Choose a tag to compare

@inakidev inakidev released this 19 Nov 20:38

Covers the payloads fake job-interview repositories hide in code that runs on npm start or npm run dev.

  • FS-005: scripts disguised as fonts, images or dictionary files (checked by their first bytes).
  • IDE-003: VS Code tasks and launch configs that run such a file with node, python or a shell.
  • CODE-001: build and lint configs hiding code past long runs of blanks, decoding or building
    code, or reading from a blockchain node.
  • CODE-002: functions built around require from a string, and eval next to network requests.
  • CODE-003: .env values that decode from base64 to a URL, high for JSON and paste stores.
  • CODE-004: literal markers of known repository malware campaigns.
  • A held-out benign corpus, never used to tune rules, is evaluated alongside the calibration corpus.

Install: npx agentsapper ./some-repo (run it from outside the folder you are checking).

npm: https://www.npmjs.com/package/agentsapper (published with provenance through npm trusted publishing)

agentsapper 0.1.0

Choose a tag to compare

@inakidev inakidev released this 19 Nov 19:24

First release.

  • 22 rules: GIT-001 to GIT-008, FS-001 to FS-004, AGENT-001 to AGENT-004, INSTR-001 to INSTR-003,
    IDE-001, IDE-002 and PKG-001. AGENT-004, INSTR-002 and INSTR-003 are experimental.
  • FS-004: programs at the repository root named like tools agents run, which Windows runs
    instead of the real ones. Symlinks that git checked out as plain files (Windows without
    Developer Mode) are recognized from git's index, so all three systems give the same report.
  • Own parsers for git config, gitattributes, git index, JSONC, a TOML subset and frontmatter. The scanner
    never runs git or any other process, never opens a symlink and never writes; lint rules and
    tests enforce this.
  • Config files that agents, IDEs or git reach through in-repo symlinks are analyzed as the tool
    would see them, with link targets resolved as the OS does (found in a second-pass review by a
    separate Claude session before release).
  • Safe walker with depth, entry, time and file-size limits. Hitting any limit makes the scan
    incomplete and the exit code 2.
  • Text, JSON and SARIF 2.1.0 output; --format, --fail-on, --rules and --quiet. The text
    report ends with a one-line verdict that matches the exit code.
  • npm run demo plants 11 small cases in a temp dir, scans them and prints OK or FAIL.
  • Windows directory junctions are treated as symlinks, and link resolution is tested against
    what the OS actually opens on Linux and Windows.
  • Paths and link targets are compared ignoring case, as Windows and macOS compare them, on
    every platform: .Claude/Settings.json is analyzed as .claude/settings.json.
  • Fixture corpus (39 malicious, 2 of them Windows-only and 1 Linux-only, and 8 benign), a
    container-only exploitability harness on git 2.39 and 2.56, a differential test of the config
    parser against git, and a benign-corpus evaluation; results in docs/evaluation/RESULTS.md.
  • Published from CI with npm provenance, only from tags that point to a commit on main.

Install: npx agentsapper ./some-repo (run it from outside the folder you are checking).

npm: https://www.npmjs.com/package/agentsapper (published with provenance)