External Publication
Visit Post

Scankii: The First Static Security Scanner Built to Stop AI Agents from Leaking API Keys

DEV Community [Unofficial] July 1, 2026
Source
Hey DevHunt community! ๐Ÿ‘‹ I'm incredibly excited to launch Scankii! As developers, we are building more and more AI Agents using frameworks like LangChain, OpenHands, and AutoGen. The standard paradigm is giving these agents "skills" or "tools" โ€” which are basically just Python functions combined with Natural Language instructions (prompts or docstrings). But here is the problem: Standard secret scanners (like GitLeaks or TruffleHog) are blind to AI-specific vulnerabilities. They only scan source code for hardcoded secrets. But what if your Python code securely loads an API key, and your English instructions accidentally trick the agent into printing that key to stdout? The agent framework captures that output, injects it into the LLM context window, and your secret is suddenly exposed. We call this Cross-Modal Leakage. Enter Scankii. ๐Ÿ›ก๏ธ Scankii solves this by analyzing the intersection of your Natural Language and your code. It uses a dual-engine pipeline (NL Semantic Analyzer + AST Syntax Analyzer) to track variable flows between your prompts and your code sinks. โœจ Core Features: 1. Dual-Engine Scanning: Correlates English instructions with Python ASTs. 2. Local-First & Fast: Your proprietary agent tools and code never leave your machine. 3. CI/CD Ready: Outputs standard SARIF reports. Drop it into GitHub Actions or use it as a pre-commit hook. 4. Framework Agnostic: Works with LangChain, AutoGen, CrewAI, MCP, or any custom python agent framework. I built Scankii to give developers peace of mind when scaling their agent toolchains. Security shouldn't be an afterthought when building autonomous systems. I would love for you to try it out on your agent repos, star the project, and leave any feedback or questions below! I'll be here all day answering them. ๐Ÿ‘‡ GitHub Repository: https://github.com/ashp15205/scankii Installation: pip install scankii

Discussion in the ATmosphere

Loading comments...