smart-compaction@0.3.10
dsh plugin: a compact_now tool letting the model trigger compaction itself at a safe point, plus a context_status tool so it can check real token usage against its context window, instead of only the automatic token-threshold trigger.
AI security review
scanned · by lpm-firewall-aiThe postinstall hook automatically changes local agent preset configuration, so this warrants a warning for package-owned extension setup. Its target is limited to matching DSH presets, and the inspected code did not establish a malicious attack chain.
Decision evidence
public snapshot- The manifest runs the preset-mounting script during postinstall.
- The script targets the DSH preset directory and skips setup if it does not exist.
- It patches only presets containing an existing compaction plugin entry.
- It adds this package as a named preset plugin and writes the changed file.
- The runtime exposes a compact_now tool, consistent with the installed extension.
- The change is limited to local preset files that already contain the matching compaction plugin; no network endpoint or credential transfer was identified in the inspected source.
Findings
2 high · 8 medium · 2 lowWhere they are, most severe file first. Code opens a file's flagged lines, with their evidence, below.
package.json1 high · 1 mediumindex.js1 highscripts/mount-into-presets.mjs6 mediumShow all 12 findings
package.json2 findingsindex.js1 findingscripts/mount-into-presets.mjs6 findingsSource & flagged code
9 flaggedPackage defines install-time lifecycle scripts.
package.jsonView on unpkgScanner record · 1 line
The manifest runs the preset-mounting script during postinstall.
package.jsonView on unpkg · L69Code excerpt · 5 lines
Source fingerprint signature matches a known malicious package signature; route for source-aware review.
index.jsView on unpkgScanner record · 10 lines
The script targets the DSH preset directory and skips setup if it does not exist.
scripts/mount-into-presets.mjsView on unpkg · L107Code excerpt · 4 lines
The script targets the DSH preset directory and skips setup if it does not exist.
scripts/mount-into-presets.mjsView on unpkg · L109Code excerpt · 6 lines
It patches only presets containing an existing compaction plugin entry.
scripts/mount-into-presets.mjsView on unpkg · L58Code excerpt · 4 lines
It patches only presets containing an existing compaction plugin entry.
scripts/mount-into-presets.mjsView on unpkg · L124Code excerpt · 6 lines
It adds this package as a named preset plugin and writes the changed file.
scripts/mount-into-presets.mjsView on unpkg · L88Code excerpt · 8 lines
It adds this package as a named preset plugin and writes the changed file.
scripts/mount-into-presets.mjsView on unpkg · L102Code excerpt · 6 lines
Affected versions and remediation
This report applies to smart-compaction@0.3.10.
See all versions of smart-compaction for other recorded verdicts.
- Review the evidence and your use of smart-compaction@0.3.10 before allowing it. Restrict the permissions described in this report.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
Evidence last updated: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.