What does IH-EXEC-004 flag?
Flags a skill that launches a coding agent with its approval step switched off, or that runs a tool with a switch that skips the confirmation for updates, deletes or sends.
- Agent flags such as --yolo, --dangerously-skip-permissions and bypassPermissions.
- Generic switches such as --no-input, --yes or auto_confirm on update, delete or send commands.
- A guard word (never, do not, unless, only when, interactive) within 3 lines lowers the severity.
Why it matters
The approval prompt is the moment a person can stop a bad action. A skill that turns it off lets the agent install, delete or send things with nobody looking, and a prompt injection anywhere in the session then runs unchecked.
Examples
Illustrative shapes with placeholders in angle brackets. They show what the rule looks at; they are not runnable and not taken from real malware.
Can IH-EXEC-004 fire on a safe skill?
- Docs that explain the flag for CI use can match when the guard sentence is more than 3 lines away.
- Scaffolding commands such as npx --yes are not flagged, but similar wrappers with other names may be.
How do I fix an IH-EXEC-004 finding?
- Keep approvals on, or run the agent in a disposable sandbox or container.
- Say when the switch is allowed, for example only in CI and never on the user machine.
CLI guidance: Keep approvals on, or run the agent in a disposable sandbox or container, and say when the switch is allowed (for example: only in CI, never on the user machine).
How do I tune or allow IH-EXEC-004?
If the skill only runs in a throwaway CI container, add the guard sentence next to the command, or exclude that one file with ignoreGlobs. You can lower the rule with ruleOverrides, but avoid turning it off.
Every key is described in Configuration. To print this rule from the CLI, run ironheights rules show IH-EXEC-004.
What can IH-EXEC-004 miss?
- Approval settings changed through a config file the skill writes at run time.
- Flags assembled from variables or split across lines.
No finding means no rule matched. It is not proof of safety. Files larger than 1 MiB are skipped without being read; the verdict is then incomplete, not no findings, but the file is still not checked. See Limitations.
Related rules
ironheights rules list.