Skip to content

AAK-IDE-TASK-004: VS Code task/launch config could not be parsed

Severity
LOW
Category
Agent Config (agent-config)
Scanner
agent_audit_kit/scanners/ide_task_rce.py
Auto-fixable
No.
SARIF name
IdeTaskConfigUnparsable

What it detects

A .vscode/tasks.json or .vscode/launch.json file could not be parsed even after stripping JSONC comments and trailing commas. AAK reports this rather than skipping it silently: an unparseable config file is exactly where an auto-run task would hide from a scan.

How to fix

Fix the JSON/JSONC syntax so the file can be audited. If it is intentionally not a VS Code task/launch config, move it out of .vscode/.

To confirm the finding is gone, report only this rule:

agent-audit-kit scan . --rules AAK-IDE-TASK-004

Limitations

Parses only tasks.json and launch.json directly inside a .vscode folder. A broken .vscode/settings.json, or a .code-workspace file, which can carry a tasks block of its own, is not parsed and never reported. A tasks.json or launch.json over 1 MB is not read.

References


All rules. This page is generated from the rule registry when the documentation is built; to change it, change the rule in agent_audit_kit/rules/builtin.py. To give the rule a hand-written write-up, add docs/rules/AAK-IDE-TASK-004.md: the page then shows that text, with the registry reference appended under it.