Repository navigation
detection: add suspicious_pkg_install trait and T1195.002 mapping (#317) - #530
Conversation
|
Reviewed against the slice's acceptance criteria. I ran the full gates locally at this head: ruff clean, 34 focused tests passed, the benchmark scores 124 cases with 65 expected findings, zero misses and zero false positives, and the collected test count matches the README. The design points that matter are all there: the trait reuses the scanner's typosquat vocabulary so runtime detection and pre-run scanning cannot disagree, quoted prose stays quiet, and the attack case proves the supply-chain mapping lands without displacing the downstream credential-exfil finding. The claim comment landed two seconds after the PR rather than before it; next time post the claim first. Not blocking. I am approving the CI workflows now. Because this changes detection files, the merge gate is the same as #521: after CI is green, the change gets replayed against real recorded history before a merge decision, and the ruleset fingerprint moves from f5f49c66 to 2cd630aceccbf473. |
Ships the suspicious_pkg_install observation from #530, a bounty slice of #317, contributed by @anhdttlop9a8-hue. Version and changelog move together per the version provenance tests. Generated by Mistral Vibe. Co-authored-by: Mistral Vibe <[email protected]>
Implements the novel/typosquatted or off-registry package install slice of #317 (one trait per PR under #454), keeping the event schema unchanged at 1.3.0.
Summary
pm, \pnpm, \yarn, \�un,
px) as well as off-registry URL/VCS installs and untrusted --index-url\ / --extra-index-url\ / --registry\ flags, while ignoring quoted prose and exact-match legitimate installs.
Verification
uff check agentmetry/core/audit/detection/traits.py agentmetry/core/audit/mitre.py tests/test_detection_pkg_install.py\ -> All checks passed.