ECC/scripts/ci
daiki75 e3f18d2376
fix: prevent IOC scanner false positives on hook filenames and scan .cursor configs (#2245)
* fix: prevent IOC scanner false positives on hook filenames and scan .cursor configs

The supply-chain IOC scanner matched CRITICAL_TEXT_INDICATORS with plain
substring search, so legitimate hook filenames that merely end with a known
payload name (e.g. the stock Cursor hook before-shell-execution.js vs the
payload execution.js) were flagged as CRITICAL. Indicator matching now
requires a non-filename character before the match.

Also add .cursor/ to the special config paths so Cursor hooks.json files
(a known persistence vector already listed in PERSISTENCE_FILENAMES) are
actually inspected in normal checkouts - previously they were only scanned
by accident when the repo path happened to contain /.claude/.

* test: cover underscore-prefixed filenames in IOC boundary suppression

Make explicit that '_' is treated as a filename word character, so
snake_case hook names like post_execution.js are intentionally not
flagged by the execution.js indicator (real payload references appear
after '/', quotes, or whitespace).
2026-06-15 13:48:50 -04:00
..
catalog.js Add React language track with agents, skills, rules, and commands (#2024) 2026-05-28 07:32:52 -04:00
check-unicode-safety.js fix(ci): cover other widely-cited invisible code points in check-unicode-safety 2026-05-18 21:20:36 -04:00
generate-command-registry.js feat: add command registry and coverage checks (#1906) 2026-05-14 22:02:36 -04:00
scan-supply-chain-iocs.js fix: prevent IOC scanner false positives on hook filenames and scan .cursor configs (#2245) 2026-06-15 13:48:50 -04:00
supply-chain-advisory-sources.js Add supply-chain advisory source refresh 2026-05-15 23:09:54 -04:00
validate-agents.js docs: salvage focused stale PR contributions 2026-05-11 05:31:12 -04:00
validate-commands.js fix: harden claude plugin manifest surfaces 2026-04-08 16:27:30 -07:00
validate-hooks.js fix: bootstrap plugin-installed hook commands safely 2026-04-14 20:24:21 -07:00
validate-install-manifests.js fix(installer): harden locale docs install 2026-05-17 20:46:04 -04:00
validate-no-personal-paths.js fix: harden CI validators 2026-05-11 03:08:43 -04:00
validate-rules.js feat: deliver v1.8.0 harness reliability and parity updates 2026-03-04 14:48:06 -08:00
validate-skills.js fix(ci): flag SKILL.md frontmatter defects in validate-skills (#1669) 2026-05-11 01:14:38 -04:00
validate-workflow-security.js security: scope release oidc publishing 2026-05-18 13:41:10 -04:00