OscarTM/sovereign-code-auditor
π‘οΈ Sovereign Code Auditor: Powered by Nemotron 3 Super
This project is a Cybersecurity & Architecture Audit Agent designed to analyze entire codebases privately and sovereignly. It leverages the frontier model NVIDIA Nemotron 3 Super (120B) to perform deep reasoning across massive contexts (up to 1M tokens).
π System Workflow & Architecture
The following diagram illustrates the integration between the local development environment, the version control system, the AI reasoning engine, and the final deployment.
graph TD
A[Local Codebase - Ubuntu] -->|Git Push| B(GitHub Repository)
A -->|Streamlit App| C{Reasoning Engine}
subgraph "NVIDIA Infrastructure"
C -->|API Request| D[Nemotron 3 Super 120B]
D -->|Deep Reasoning| C
end
subgraph "Hugging Face"
E[HF Spaces - Demo] -->|Reads Secrets| F[NVAPI_KEY]
E -->|Runs| A
end
C -->|Generates| G[Security & Architecture Report]
G -->|Download| H[Markdown Report]π Key Features
- Frontier Reasoning: Multi-step vulnerability analysis (Chain-of-Thought) applied to complex business logic.
- Massive Context (1M Tokens): Capacity to "read" and understand cross-file relationships within hundreds of files simultaneously.
- Sovereign AI: Designed to run on private infrastructure (NVIDIA NIM), eliminating dependency on closed-source APIs and protecting intellectual property.
- Automated Reporting: Generates detailed Markdown reports including risk severity levels and mitigation roadmaps.
π οΈ Tech Stack
- Model: NVIDIA Nemotron 3 Super (120B) - FP8 Inference.
- Orchestration: Python 3.11+ & OpenAI SDK (NVIDIA NIM compatible).
- Interface: Streamlit (Interactive Dashboard).
- Infrastructure: NVIDIA Build API / Hugging Face Spaces.
π» Installation & Usage
1. Clone the repository:
git clone [https://github.com/oscartma/sovereign-code-auditor.git](https://github.com/oscartma/sovereign-code-auditor.git)
cd sovereign-code-auditor2. Install dependencies:
pip install -r requirements.txt3. Configure API Key: Obtain your free NVAPI_KEY at build.nvidia.com.
4. Run the application:
streamlit run app.pyπ Audit Example
Input: Python/Flask microservices repository. Reasoning: Nemotron detected that an environment variable in config.py was being called without validation in db_connector.py, creating a potential injection risk. Output: Detailed report with the suggested code patch and architectural fix.
π License
This project is licensed under the MIT License. The Nemotron 3 Super model is subject to NVIDIAβs applicable license terms.
