Code Sentinel
The Autonomous Self-Aware Cyber-Defense Agent
Created on 14th June 2026
•
Code Sentinel
The Autonomous Self-Aware Cyber-Defense Agent
The problem Code Sentinel solves
CodeSentinel 🛡️
The Autonomous Self-Aware Cyber-Defense Agent
We live in an era where even massive institutions can be brought to their knees by a single security failure. The recent CBSE OSM portal hack was a brutal reminder: nobody is untouchable. If giants with entire security teams are still getting hit, what chance does a small business, freelance developer, or lean agency have on its own?
CodeSentinel is an automated cybersecurity force multiplier built for the people who cannot afford giant audit budgets, endless manual reviews, or the cost of getting it wrong.
🛑 The Problem with Existing Solutions
- Professional Audits: Painfully slow. Brutally expensive.
- GitGuardian: Too often overwhelms developers with noise.
- TruffleHog & Semgrep: Powerful, but intimidating for beginners and blind to the bigger story.
- Pasting into ChatGPT/Claude: Expensive, risky, and a direct threat to privacy. Your codebase and .env files deserve better than being thrown into a public cloud prompt.
🚀 Why CodeSentinel?
CodeSentinel closes that gap by combining proven security checks with an autonomous agent that actually understands what it is looking at.
- Privacy First: Your sensitive code, secrets, and business logic stay under your control.
- Frighteningly Sharp: It does not just flag issues. It understands intent, context, and patterns.
- Actually Actionable: It does not stop at warning you. It tells you what matters, why it matters, and what to do next.
🔍 Two Modes of Attack
1. Static Mode (Local Repo)
Point CodeSentinel at a local directory and it tears through the codebase, separates real danger from noise, and delivers a prioritized report of what could hurt you most. Then it can go one step further and automatically fix the vulnerabilities it finds and package the changes into a GitHub PR.
👉 View a sample Static Analysis Report | View the Auto-Fix Report
2. Dynamic Mode (Live URL)
This is where CodeSentinel becomes genuinely terrifying. It explores a live target like a relentless security researcher, uncovering what should never have been exposed in the first place.
📖 Story Time
Just last week, I was handed a freelance project. The previous developers had left, and the owner asked me to analyze the live website (I didn't even have the codebase yet!). Doing it manually, I found 2 or 3 unauthenticated endpoints.Then, I pointed CodeSentinel at the live URL while building it at HackPrix Season 3.
It found over 15 hidden endpoints, including exposed Supabase REST and storage URLs. It uncovered a JWT with an absurdly long expiration, derived the Anon Key, made its own requests, and reached a publicly accessible table leaking plaintext passwords and usernames. It achieved in 10 minutes what would normally demand a dedicated cybersecurity researcher.
🛠️ Technical Setup & Usage
CodeSentinel is built to feel effortless. We package everything into Docker so you can focus on the mission, not the setup.
Quick Start (Docker)
To run an interactive scan on your current directory:
docker run -it \
-v /var/run/docker.sock:/var/run/docker.sock \
-v "$(pwd)":/scan \
ashboi005/code-sentinel:latest interactive
(Note: If you are on Windows, use "%cd%":/scan instead of "$(pwd)":/scan)
⚠️ IMPORTANT: Bring Your Own Key (BYOK)
While the TUI currently offers a "Deployed Lightweight Model" proxy for demonstration purposes, the recommended path is still Bring Your Own Key (BYOK) when running locally.
To protect API limits and tokens, the hosted proxy may be turned off without warning. Bringing your own API key gives you stability, freedom, and the strongest results.
Configuration Modes
During the interactive setup, you will be asked for:
- Target:
repo(Local directory) orurl(Live website) - Path/URL: The path to your mounted code (
/scan) or thehttps://URL. - Model Provider: Select between OpenAI, Anthropic, OpenRouter, or Ollama (Local).
- Remediation: Choose whether you want the agent to just report vulnerabilities, fix them locally, or even create a GitHub PR with the patches!
Built to put world-class cyber defense in the hands of the developers who build the web.
🛡️❤️ Made with love by Ashwath, Tushar, and Aditya 🚀
Challenges we ran into
Challenges Faced
1. Integrating Multiple Security Tools
Our platform combines multiple security technologies, including Semgrep for static analysis, TruffleHog for secret detection, and a custom dynamic analysis engine. Each tool produces findings in different formats, severity levels, and structures. Building a unified pipeline that could aggregate, normalize, and present these findings consistently was a significant challenge.
2. Reducing False Positives
Security scanners often generate large numbers of warnings, many of which may not represent real vulnerabilities. We had to design validation and filtering mechanisms to improve signal quality and ensure that users receive actionable security findings rather than overwhelming amounts of noise.
3. Building an Autonomous Dynamic Analysis Engine
Most traditional scanners focus only on source code analysis. We wanted our platform to actively interact with running applications using a headless browser, exploring pages, forms, and user flows to uncover runtime vulnerabilities. Designing an agent capable of intelligently navigating applications and identifying potential security weaknesses was one of the most complex parts of the project.
4. Correlating Findings Across Different Scanners
The same vulnerability can sometimes be reported by multiple tools in different ways. We faced challenges in deduplicating findings, correlating related issues, and presenting a unified security report that avoids redundancy while preserving important context.
5. Context-Aware Vulnerability Remediation
Detecting vulnerabilities is only part of the problem. Generating meaningful fixes required understanding the surrounding codebase, preserving application functionality, and ensuring that suggested remediations did not introduce new issues or break existing features.
6. GitHub MCP Integration and Automated Pull Requests
One of the most challenging aspects of the project was automating the remediation workflow through GitHub MCP. After identifying vulnerabilities and generating fixes, the agent needed to create a new branch, apply code changes, commit them, push the branch to the repository, and automatically open a pull request. Ensuring these operations worked reliably across different repositories while keeping the main branch protected required careful workflow design and testing.
7. Orchestrating Multiple AI and Security Components
Our platform combines static analysis, secret scanning, dynamic testing, AI-powered reasoning, automated remediation, and GitHub automation. Coordinating these components into a seamless end-to-end workflow while maintaining reliability, accuracy, and performance was a major engineering challenge.
8. Supporting Diverse Codebases
Different projects use different programming languages, frameworks, repository structures, and development practices. Designing a system flexible enough to work across a wide variety of codebases without requiring extensive manual configuration was a significant challenge.
9. Balancing Security Coverage and Performance
Comprehensive security analysis can be resource-intensive and time-consuming. We had to carefully balance scan depth, execution speed, and infrastructure costs to provide meaningful security coverage while maintaining a practical user experience.
10. Making Enterprise-Grade Security Accessible
Many existing security platforms provide advanced capabilities but are often expensive and difficult for smaller teams to adopt. A key challenge was delivering deep security analysis, automated remediation, and workflow automation while keeping the solution cost-effective and accessible.
Tracks Applied (1)
CyberSecurity
HackPrix
