The ecosystem of AI coding agents is expanding rapidly, but so is the attack surface. A new tool called Preflight, launched on Hacker News, acts as a security scanner for Claude Code skills, plugins, and hooks. Developed by Deepwissen, the CLI aims to prevent developers from blindly installing unvetted instructions that could compromise their local environment or leak credentials.

The Hidden Risks in Agent Configurations

Unlike traditional dependencies, AI agent skills are Markdown instructions that the model follows, often accompanied by executable hooks. The source material highlights a USENIX Security 2026 study that verified 98,380 community skills, identifying 157 malicious ones with 632 vulnerabilities. These threats range from credential theft to agent hijacking, where the prose itself serves as the payload. Additionally, research from Check Point and Datadog has exposed risks in automatic hooks and npm packages that can execute code before a user even reviews the trust dialog.

How Preflight Audits the Agent Loadout

Preflight operates locally, scanning the project and personal ~/.claude directories to reveal what the agent is actually carrying. It detects embedded secrets, prompt injection attempts, hidden Unicode characters, and over-broad tool permissions. For example, it can flag a hook in .claude/settings.json that fetches a remote script and pipes it directly to a shell, a classic remote code execution pattern. The tool provides a clear manifest showing token costs and security statuses for each skill, allowing developers to see exactly what is being loaded into their context window.

Installation Gating and CI Integration

The tool is designed to integrate into developer workflows before installation occurs. Users can run preflight add owner/repo --dry-run to scan a pack of skills without installing them, or use --only to selectively install clean items. For continuous integration, Preflight supports --fail-on warning to block merges that introduce risky configurations, outputting SARIF files for GitHub code scanning. This ensures that a teammate’s shared configuration file doesn’t silently introduce a dangerous startup hook or permission bypass.

Honest Limits and Testing Rigor

Deepwissen emphasizes that a clean scan is not a guarantee of safety, comparing the tool to a pre-flight checklist rather than a certified safe passage. The scanner is tested against over 200 attack fixtures, including reverse shells and poisoned MCP servers, as well as benign skills to minimize false positives. Notably, the team adjusted their detection logic after Preflight initially blocked Anthropic’s official skills due to false alarms on placeholder tokens and documentation warnings.

Key Takeaways

  • Preflight scans local Claude Code skills, plugins, and hooks for security risks like prompt injection and remote code execution.
  • A 2026 USENIX study found 157 malicious skills out of nearly 100,000 community-submitted files.
  • The tool supports CI integration to block risky configurations from merging into production branches.
  • All scanning happens locally with no telemetry or data upload, except for git clones when adding skills from repositories.

The Bottom Line

Preflight is a necessary hygiene tool for the AI agent era, but it should be treated as a filter, not a firewall. Developers must remember that a clean scan only means no known-bad patterns were found, not that the code is inherently safe.