mirror of
https://github.com/affaan-m/ECC.git
synced 2026-10-26 18:35:05 +00:00
The project-scoped reference file shipped an active [profiles.yolo] block with approval_policy = "never" and exposed MCP servers / approval_policy / sandbox_mode / notify / profiles.* keys that override the user's own ~/.codex/config.toml when the repo is trusted. AgentShield flags this as codex-approval-never (CRITICAL) and codex-project-config-escalates (HIGH). Restrict the project-scoped file to model selection, persistent instructions, features, and role definitions. Move every other key into a clearly-marked USER-LEVEL REFERENCE appendix as commented-out examples so installs still ship a usable template without overriding user policy. Verified locally with ecc-agentshield scan --path . against .codex/config.toml: * pre-fix: 2 critical/high findings * post-fix: 0 critical/high findings Refs: ARU-10 (ECC-SEC-1.1 review CLEAR), ARU-18 (this PR). Co-Authored-By: Paperclip <noreply@paperclip.ing>