CoolFace
Apppublic

michael-c-137/gemini-mythos

sourceHugging Faceupdated 4mo agoView on Hugging Face
0likes
App README

๐Ÿ›ก๏ธ Gemini Mythos

Team: Invencible Hackathon: TechEx Intelligent Enterprise Solutions Primary Tracks:

  1. 1.Agent Security & AI Governance (Powered by Veea)
  2. 2.AI Agents with Google AI Studio

๐Ÿ“– The Core Thesis

Replicating the frontier cybersecurity capabilities of Anthropicโ€™s Mythos by applying the "Jagged Frontier" philosophy.

While Anthropic focuses on the raw power of a single frontier model, Gemini Mythos proves that the "moat" is the system, not just the model. By orchestrating a multi-agent pipeline using a mix of Gemini 2.5 Pro, Gemini 2.5 Flash, and Gemini Flash Lite models within an always-on governance scaffold, we aim to matchโ€”and in false-positive discrimination, exceedโ€”the results of frontier-scale autonomous cybersecurity agents.


๐Ÿš€ Technical Architecture: The Five-Stage Pipeline

We utilize LangGraph to orchestrate a deterministic, 5-stage state machine that balances reasoning depth with API cost and speed.

StageAgent RoleGemini ModelPurpose
1The Scoutgemini-3.1-flash-liteUltra-fast mapping of the attack surface. Identifies files handling untrusted input, auth, and memory management.
2The Analystgemini-2.5-proPerforms a "Full-Brain" deep-logic audit across batches of files to catch complex, cross-file vulnerabilities (e.g., SSRF, Prompt Injection, RCE).
3The Validatorgemini-2.5-flashActs as the Skeptical "Devil's Advocate". Peer-reviews findings to eliminate false positives and ensure the logic flaw is genuinely exploitable at the code level.
4The Oraclegemini-2.0-flash-liteThe Autonomous Exploit Oracle. Generates a Python Proof-of-Concept (PoC) script and executes it in a sandboxed environment to empirically prove the exploit.
5The Remediatorgemini-2.5-flashGenerates a secure, Git-compatible patch (Diff) and validation unit tests.

๐ŸŒŸ Innovation Differentiators

  • โ€”1M Context "Full-Brain" Audit: Feeds entire repositories into Gemini 2.5 Pro for cross-file logic auditing to catch vulnerabilities that traditional chunked-RAG systems miss.
  • โ€”Autonomous Exploit Oracle: The system doesn't just guess; it generates a PoC script and verifies the vulnerability in real-time within a sandboxed execution environment.
  • โ€”Always-On Governance (Veea): Every prompt and response is proxied through a Veea Lobster Trap managed proxy (running locally on port 8081). Governance is not optional; there is no opt-out checkbox, ensuring a 100% audit trail of autonomous agent intent.
  • โ€”Targeted Model Allocation: Cost and speed are optimized by mapping the right model to the right task, avoiding global rate-limit bottlenecks.

๐Ÿ’ป Public Interface: The "Sentinel" Dashboard

Designed in Streamlit as a high-density command center for enterprise security:

  • โ€”Live Multi-Stage Tracker: Visualizes the real-time transition across the LangGraph state machine.
  • โ€”"Jagged Frontier" Radar Chart: Plotly-powered executive comparison of Gemini Mythos vs. standard SAST scanners.
  • โ€”Interactive Tabs:
  • โ€”Summary: Executive metrics and confirmed vulnerability dataframe.
  • โ€”Analyst Reasoning: A real-time terminal stream of the AI's internal thought process.
  • โ€”Remediation & PoC: Side-by-side view of the generated patch, unit tests, and sandbox execution logs.
  • โ€”Veea Audit Logs: The intercepted network payloads and governance metadata from the Lobster Trap proxy.

๐Ÿ› ๏ธ Setup & Local Development

Prerequisites

  • โ€”Docker and Docker Compose
  • โ€”Google AI Studio API Key (GOOGLE_API_KEY)

Installation

  1. 1.Clone the repository:
bash
    git clone https://github.com/your-username/gemini-mythos.git
    cd gemini-mythos
  1. 1.Configure Environment: Create a .env file in the root directory and add your Google API key:
env
    GOOGLE_API_KEY=your_api_key_here
  1. 1.Run with Docker Compose:
bash
    docker-compose up --build

This will start:

  • โ€”The Lobster Trap Proxy on http://localhost:8081
  • โ€”The Sentinel Dashboard on http://localhost:8501
  1. 1.Access the Application: Open your browser and navigate to http://localhost:8501.

For a demonstration, enter the following repository URL and click Start Deep Audit: https://github.com/vulnerable-apps/damn-vulnerable-MCP-server


Built for the TechEx Intelligent Enterprise Solutions Hackathon - 2026