RatanSec Super Agentauthorised AI security agent · self-hosted
bring your own private API key

Bol do kya karna hai.
Agent tool chala dega — authorised scope ke andar.

Super Agent ek self-hosted AI layer hai jo Kali/Linux tools ko natural language se chalata hai: recon → enumeration → vulnerability analysis → web/API testing → (approval ke baad) gaining access aur exploitation → evidence-backed report. Dashboard, phone console (PWA) aur asli terminal — teeno se.

139tools catalogued
12sections
49approval-only tools
0commands without an authorization record

Tool arsenal — har section me 2-3 se 27 tools

Catalog-driven: har tool ke allowed flags fix hain, execution argv-only hai (no shell injection). Missing tool? Install hint seedha Arsenal tab me.

🛰️ 1. Recon / OSINT

Domain, DNS, cert, tech-stack, attack surface.

nmap · dig · whois · subfinder · amass · theHarvester · whatweb · wafw00f · sslscan · testssl · masscan · traceroute · sherlock · cloud_enum

📂 2. Information Access

SMB/NFS shares, SNMP, LDAP, crawling, hidden params.

enum4linux-ng · smbmap · rpcclient · snmpwalk · ldapsearch · showmount · httpx · katana · arjun · dalfox · netexec

🔬 3. Vulnerability Analysis

CVEs, misconfig, leaked secrets, SAST.

nuclei · nmap-vuln · nikto · wapiti · zap-baseline · searchsploit · trivy · gitleaks · trufflehog · semgrep

🌐 4. Web / API

Endpoints, JWT, GraphQL, injection checks.

ffuf · gobuster · feroxbuster · dirsearch · wpscan · sqlmap · commix · xsstrike · jwt_tool · graphql-cop

🚪 5. Gaining Access

Login services — rate-limited, approval-only.

hydra · medusa · ncrack · patator · responder · bettercap · aircrack-ng

💥 6. Exploitation / PoC

Minimal, non-destructive proof-of-concept.

metasploit · msfvenom · sqlmap-exploit · corsy · ssrfmap · impacket · routersploit

🧭 7. Post-Exploitation

Situational awareness, pivoting (approval).

linpeas · winpeas · bloodhound · secretsdump · chisel · proxychains

🪜 8. Priv-Esc Checks

Read-only misconfiguration detection.

sudo-check · suid-finder · getcap · pspy · linux-exploit-suggester

🔑 9. Password / Hash

Apne lab hashes par dictionary + rules audit.

hashcat · john · hashid · cewl · crunch · rsmangler

📶 10. Wireless / RF

Apne SSID/AP ki security posture.

airmon-ng · airodump-ng · aireplay-ng · wifite · bettercap-wifi

📄 11. Reporting

Evidence, hashes, chain-of-custody.

sha256sum · gpg-sign · evidence bundle · AI report draft

🧰 12. Utility

Terminal ke rozana ke helpers.

curl · nc · socat · jq · openssl · proxychains-wrap

Safety jo enforce hoti hai, suggest nahi

Aapke paas authorization hai — system uska record rakhta hai aur uske bahar kuch nahi hone deta.

user / AI │ tool call ▼ [1] catalog gate → sirf defined tool + defined flags (argv-only) [2] scope check → target authorised? (default DENY) [3] hard blocks → 169.254.x.x · metadata · multicast · 0.0.0.0 [4] approval gate → intrusive tools + shell = human tap (phone) [5] executor → timeout · output cap · cancel · no shell [6] audit+evidence → hash-chained JSONL (tamper-evident)

Engagement records (RoE)

Client, scope hosts, permitted sections, validity window, signer + SOW reference. Record ke bina agent ke paas koi command nahi — aur section record me nahi to us section ka tool bhi nahi.

Human-in-the-loop

Brute-force, exploitation, post-exploitation, hash cracking, wireless aur raw shell — sab par ek tap chahiye. Approve karne se pehle exact command dikhta hai. 20 min me expire.

Tamper-evident evidence

Har event prev_hash → hash chain me. Verify endpoint batata hai kaunsa record toota. Ek click me evidence bundle (zip) — audit + ledger + manifest.

Quick start

Python 3.10+, 3 dependencies. Tools Kali/Debian/Ubuntu ya Termux par.

# 1) backend + UI
cd ratansec-os
python3 -m venv .venv && source .venv/bin/activate
pip install -r superagent/requirements.txt

# 2) config (apni private API key)
cp superagent/.env.example .env
#   APP_PASSWORD=…  SUPERAGENT_API_TOKEN=…
#   SUPERAGENT_API_KEY=sk-…  SUPERAGENT_ALLOW_SHELL=1

# 3) tools (jitne chahiye)
bash scripts/install-agent-tools.sh core

# 4) chalao
bash scripts/superagent.sh          # http://localhost:8000
SurfaceUse
/Dashboard — chat, terminal, arsenal, runs, approvals, records, reports, evidence
/mobilePWA — phone par install, live approvals, terminal
python -m superagent.cliTerminal client — agent mode + ! shell passthrough
/api/docsOpenAPI — apna app/client banao (X-Agent-Token)
Model badalna hai? SUPERAGENT_BASE_URL + SUPERAGENT_MODEL — OpenRouter, OpenAI, Groq, DeepSeek, Gemini-compat, ya apna local Ollama/vLLM endpoint.

📱 Phone par — APK

Native Android shell (Kotlin + WebView). Server aapke laptop/VPS par chalta hai, phone console banta hai.

Download & install

1. RatanSec-SuperAgent-debug.apk download karo (permanent link — hamesha latest build).
2. Phone: "Install unknown apps" allow karo → APK kholo → Install.
3. App me server daalo: http://<laptop-ip>:8000 + SUPERAGENT_MOBILE_TOKEN.
4. Bas — chat, terminal, approvals, records, reports sab phone par.

# laptop / VPS par agent chalao
cd ratansec-os
cp superagent/.env.example .env
#   APP_PASSWORD=…  SUPERAGENT_MOBILE_TOKEN=…  SUPERAGENT_API_KEY=sk-…
bash scripts/superagent.sh        # http://0.0.0.0:8000
APK build CI me hoti hai (GitHub Actions). Chaho to khud bhi banao: cd ratansec-os/superagent/android && gradle :app:assembleDebug. Server par APK rakhi ho to /app-debug.apk se bhi download ho jati hai.