๐Ÿฅท Atoms Ninja - AI-Powered Cybersecurity Platform

Production-ready cybersecurity platform with Google Gemini AI Security Architect and Kali Linux tools integration.

Version License


๐ŸŒŸ Features

  • ๐Ÿค– AI Security Architect - Interactive cybersecurity consultant powered by Google Gemini
  • ๐Ÿง Kali Linux Tools - 500+ penetration testing tools (nmap, metasploit, burp suite, wireshark)
  • ๐Ÿ”’ Service Account Auth - Production-ready with Google Cloud service accounts
  • ๐Ÿ’ฌ Interactive Terminal - Real-time command execution with AI guidance
  • ๐ŸŒ Global Deployment - Ready for worldwide distribution
  • ๐Ÿ“Š Security Arsenal - Vulnerability scanning, digital forensics, threat analysis

๐Ÿš€ Quick Start

Prerequisites

  • Node.js 16+ installed
  • Google Cloud Service Account with Generative Language API enabled
  • Service account JSON key file

1. Get Your Service Account

  1. Go to Google Cloud Console - Service Accounts
  2. Select your project
  3. Create or select a service account
  4. Click โ‹ฎ โ†’ "Manage keys" โ†’ "Add Key" โ†’ "Create new key" โ†’ "JSON"
  5. Download the JSON file and save it as service-account.json in this directory

2. Enable Required APIs

gcloud services enable generativelanguage.googleapis.com

Or enable manually: https://console.cloud.google.com/apis/library/generativelanguage.googleapis.com

3. Setup & Run

# Run setup script
./setup.sh

# Or manual setup:
npm install
cp .env.example .env
# Edit .env with your settings

# Start backend server
npm start

# Open frontend
open index.html

The backend will run on http://localhost:3001 and the frontend can be opened directly in your browser.


๐Ÿ“ Project Structure

atoms/
โ”œโ”€โ”€ index.html              # Frontend application
โ”œโ”€โ”€ styles.css              # UI styling
โ”œโ”€โ”€ script.js               # Frontend logic
โ”œโ”€โ”€ config.js               # Configuration
โ”œโ”€โ”€ gemini-proxy.js         # Backend proxy server (Node.js)
โ”œโ”€โ”€ package.json            # Node.js dependencies
โ”œโ”€โ”€ service-account.json    # Your service account key (DO NOT COMMIT)
โ”œโ”€โ”€ .env                    # Environment variables (DO NOT COMMIT)
โ”œโ”€โ”€ Dockerfile              # Docker configuration
โ”œโ”€โ”€ DEPLOYMENT.md           # Deployment guide
โ””โ”€โ”€ README.md               # This file

๐ŸŒ Production Deployment

Backend Deployment Options

Option 1: Vercel (Recommended)

npm i -g vercel
vercel secrets add service-account-json "$(cat service-account.json)"
vercel --prod

Option 2: Google Cloud Run

gcloud run deploy atoms-ninja-backend \
  --source . \
  --platform managed \
  --region us-central1 \
  --allow-unauthenticated

Option 3: Docker

docker build -t atoms-ninja-backend .
docker run -p 3001:3001 \
  -v $(pwd)/service-account.json:/app/service-account.json \
  atoms-ninja-backend

Option 4: Railway / Render / Fly.io

See DEPLOYMENT.md for detailed instructions.

Frontend Deployment

Deploy the static files (index.html, styles.css, script.js, config.js) to:

  • Vercel: vercel --prod
  • Netlify: netlify deploy --prod
  • Cloudflare Pages: Connect GitHub repo
  • GitHub Pages: Push to gh-pages branch
  • AWS S3 + CloudFront: Upload to S3 bucket

Important: Update CONFIG.BACKEND_API_URL in script.js with your deployed backend URL.


๐Ÿ’ป Usage Examples

AI Security Consultant

โ†’ Design a security architecture for a financial web application
โ†’ What's the best approach for penetration testing?
โ†’ Explain the OWASP Top 10 vulnerabilities
โ†’ How should I secure a microservices infrastructure?

Direct Commands

nmap -sV 192.168.1.1                    # Network scanning
scan target.com                         # Vulnerability scanning
metasploit                              # Exploitation framework
wireshark                               # Packet analysis
help                                    # Show all commands

โš™๏ธ Configuration

Environment Variables (.env)

PORT=3001
GOOGLE_APPLICATION_CREDENTIALS=./service-account.json
ALLOWED_ORIGINS=https://your-domain.com
RATE_LIMIT_MAX_REQUESTS=60

Frontend Config (script.js)

const CONFIG = {
    BACKEND_API_URL: 'https://your-backend-domain.com',
    KALI_MCP_ENDPOINT: 'http://localhost:3000'
};

๐Ÿ” Security Best Practices

  • โœ… Never commit service-account.json or .env to version control
  • โœ… Use environment variables for sensitive data
  • โœ… Set CORS to your specific domains (not *)
  • โœ… Enable rate limiting
  • โœ… Use HTTPS in production
  • โœ… Monitor API usage and set billing alerts
  • โœ… Restrict service account permissions to minimum required
  • โœ… Rotate service account keys regularly

๐Ÿ“Š API Endpoints

Backend Server

POST /api/gemini

{
  "prompt": "Your security question or command",
  "temperature": 0.8,
  "maxTokens": 300
}

GET /health

{
  "status": "ok",
  "service": "Atoms Ninja Gemini Proxy"
}

๐Ÿ› Troubleshooting

Backend won't start

# Check Node.js version
node --version  # Should be 16+

# Check service account file
cat service-account.json | jq .

# Test manually
node gemini-proxy.js

CORS errors

Update .env:

ALLOWED_ORIGINS=http://localhost:8000,https://your-domain.com

Service account auth fails

# Verify API is enabled
gcloud services list --enabled | grep generativelanguage

# Test service account
gcloud auth activate-service-account --key-file=service-account.json

๐Ÿ’ฐ Cost Estimation

  • Gemini Pro API: ~$0.00025 per request
  • Backend hosting: $0-20/month (Vercel free tier available)
  • Frontend hosting: Free (most platforms)

Estimated cost for 10,000 users/month: $5-30


๐Ÿงช Development

# Install dev dependencies
npm install

# Run in development mode with auto-reload
npm run dev

# Run frontend locally
python3 -m http.server 8000
# Open http://localhost:8000

๐Ÿ“– Documentation


โš–๏ธ Legal & Ethics

โš ๏ธ IMPORTANT: This tool is for authorized security testing only.

  • Only test systems you own or have explicit written permission to test
  • Unauthorized access to computer systems is illegal
  • Users are responsible for compliance with all applicable laws
  • Always follow responsible disclosure practices
  • The developers assume no liability for misuse

๐Ÿ“„ License

MIT License - See LICENSE file for details


๐Ÿค Contributing

Contributions welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

๐Ÿ†˜ Support

  • Documentation: See DEPLOYMENT.md
  • Issues: Open a GitHub issue
  • Security: Report vulnerabilities privately

Made with ๐Ÿ’œ by Atoms Ninja Team

Defend. Analyze. Secure. Protect.

๐Ÿš€ Features

  • Kali Linux MCP Integration: Access to 500+ penetration testing tools
  • AI-Powered Analysis: Google Gemini AI for intelligent security insights
  • Interactive Terminal: Real-time command execution and results
  • Digital Forensics: Advanced tools for incident response
  • Automated Scanning: Vulnerability detection and CVE identification
  • Professional Reports: Comprehensive security assessment reports

๐Ÿ“‹ Prerequisites

  1. Google Gemini API Key (FREE)

    • Visit: https://aistudio.google.com/app/apikey
    • Sign in with your Google account
    • Click "Create API Key"
    • Select your Google Cloud project (or create a new one)
    • Copy the API key (starts with "AIza...")
    • Note: The free tier includes generous limits for testing
  2. Kali Linux MCP Server (optional for full functionality)

    • Install and run Kali Linux MCP server
    • Configure endpoint in config.js

๐Ÿ”ง Setup

Step 1: Configure API Key

Option A: Browser Console

configureGeminiAPI('your-api-key-here');

Option B: Edit config.js

gemini: {
    apiKey: 'your-api-key-here',
    // ...
}

Step 2: Open the Application

Simply open index.html in your browser or serve it with a local server:

# Python
python3 -m http.server 8000

# Node.js
npx http-server

# PHP
php -S localhost:8000

๐Ÿ’ป Usage

Available Commands

Network Scanning:

nmap -sV 192.168.1.1
scan 192.168.1.0/24

Vulnerability Assessment:

scan target.com for vulnerabilities
exploit CVE-2023-1234

Penetration Testing:

metasploit
msfconsole
use exploit/multi/handler

Network Analysis:

wireshark
burp suite

Digital Forensics:

forensic analysis
autopsy
volatility

Natural Language (AI):

Scan 192.168.1.1 for open ports and vulnerabilities
What are the best tools for web application testing?
How do I analyze a memory dump?

Keyboard Shortcuts

  • Enter: Execute command
  • โ†‘/โ†“: Navigate command history
  • Shift+Enter: New line in input

๐Ÿ›ก๏ธ Security & Ethics

โš ๏ธ IMPORTANT: This tool is for authorized security testing only.

  • Only test systems you own or have explicit permission to test
  • Unauthorized access to computer systems is illegal
  • Use responsibly and ethically
  • Follow responsible disclosure practices
  • Comply with local laws and regulations

๐Ÿ”Œ API Integration

Google Gemini AI

The platform uses Google Gemini for:

  • Natural language command interpretation
  • Security analysis and insights
  • Vulnerability remediation suggestions
  • Report generation

Kali Linux MCP Server

Configure your MCP server endpoint in config.js:

kaliMCP: {
    endpoint: 'http://localhost:3000',
    // ...
}

๐ŸŽจ Customization

Theme

Edit styles.css to customize colors and appearance:

:root {
    --color-purple: #8B5CF6;
    --color-pink: #EC4899;
    /* ... */
}

Commands

Add custom commands in script.js:

async function processCommand(command) {
    // Add your custom command logic
}

๐Ÿ“š Tools Included

  • nmap: Network scanner
  • Metasploit: Exploitation framework
  • Wireshark: Network protocol analyzer
  • Burp Suite: Web security testing
  • SQLMap: SQL injection tool
  • Nikto: Web server scanner
  • Aircrack-ng: WiFi security
  • John the Ripper: Password cracker
  • Hashcat: Advanced password recovery
  • Autopsy: Digital forensics
  • Volatility: Memory forensics

๐Ÿ› Troubleshooting

API Key Issues:

  • Verify your API key is correct
  • Check API quota and billing
  • Ensure network connectivity

MCP Server Connection:

  • Verify server is running
  • Check endpoint configuration
  • Review CORS settings

Terminal Not Responding:

  • Refresh the page
  • Check browser console for errors
  • Clear browser cache

๐Ÿ“– Resources

โš–๏ธ Legal Disclaimer

This software is provided for educational and authorized testing purposes only. Users are responsible for compliance with all applicable laws. The developers assume no liability for misuse.

๐Ÿ“„ License

MIT License - See LICENSE file for details

๐Ÿค Contributing

Contributions welcome! Please read our contributing guidelines and code of conduct.


Made with ๐Ÿ’œ by Atoms Ninja Team

Defend. Analyze. Secure. Protect.

Built With

Share this project:

Updates