GitHunt
AL

alekhakumarswain/AI-SECURITY-LABS

An advanced, interactive educational platform focused on AI system vulnerabilities, attack vectors, and offensive security methodologies. [Prompt Injection, Model Evasion, Data Poisoning, Agent Hijacking]

AI Security Labs Logo

AI Security Labs

An advanced, interactive educational platform focused on AI system vulnerabilities, attack vectors, and offensive security methodologies.
[Adversarial Prompt Injection, Data Poisoning, Model Stealing, Agent Hijacking, etc.]

Deploy with Vercel

Course Overview | Hands-on Labs | GitHub Repository



Python Version FastAPI Vercel License

Platform Architecture Overview

๐Ÿš€ Overview

AI Security Labs is a comprehensive learning platform designed to teach the fundamentals and advanced concepts of AI security. The application is built using a modern Python FastAPI backend, rendering beautiful Vanilla CSS templates through Jinja2. All course data is modularly structured using YAML files, making it incredibly easy to expand the curriculum.

โœจ Features

  • Extensive Course Curriculum: Dive deep into topics like:
    • Agent & Autonomous System Attacks (Tool Injection, SSRF, Excessive Agency)
    • Adversarial Attacks & Prompt Injection
    • Data Poisoning & Supply Chain Compromise
    • Model Evasion & Model Stealing
    • AI System Quality Testing & Red Teaming
  • Modular Architecture: Courses are dynamically generated from rich YAML definitions. Adding a new module is as simple as dropping a new .yaml file.
  • Interactive UI/UX: Sleek, dark-mode focused aesthetic built specifically for security enthusiasts.
  • Server-Side Rendering Context: Optimized for blazing-fast content delivery.
  • Vercel Ready: Pre-configured vercel.json for immediate edge deployment.

๐Ÿ› ๏ธ Tech Stack

  • Backend framework: FastAPI
  • Templating Engine: Jinja2
  • Data Serialization: PyYAML
  • Server: Uvicorn
  • Frontend: HTML5, Vanilla CSS3 (Custom Design System)

๐Ÿ“ฆ Getting Started Locally

Prerequisites

Ensure you have Python 3.9+ installed on your system.

Installation

  1. Clone this repository:

    git clone https://github.com/alekhakumarswain/AI-SECURITY-LABS.git
    cd AI-SECURITY-LABS
  2. Install the required dependencies:

    pip install -r requirements.txt
  3. Run the development server:

    python app.py
  4. Open your browser and navigate to:
    http://127.0.0.1:8000

๐ŸŒ Deployment (Vercel)

This application is fully prepared for serverless deployment on Vercel. You can use the "Deploy with Vercel" button at the top of this documentation to instantly clone and deploy the app!

If you prefer using the Vercel CLI:

vercel

๐Ÿ“‚ Project Structure

.
โ”œโ”€โ”€ app.py                     # Main FastAPI application
โ”œโ”€โ”€ requirements.txt           # Python dependencies
โ”œโ”€โ”€ vercel.json                # Vercel deployment configuration
โ”œโ”€โ”€ details/                   # Course Data (YAML files)
โ”‚   โ”œโ”€โ”€ adversarial_attacks.yaml
โ”‚   โ”œโ”€โ”€ ai_agent_attacks.yaml
โ”‚   โ”œโ”€โ”€ data_poisoning.yaml
โ”‚   โ””โ”€โ”€ ...
โ”œโ”€โ”€ templates/                 # Jinja2 HTML Templates
โ”‚   โ”œโ”€โ”€ index.html             # Landing Page
โ”‚   โ”œโ”€โ”€ learn.html             # Course Curriculum Page
โ”‚   โ””โ”€โ”€ labs.html              # Hands-On Lab Terminal UI
โ””โ”€โ”€ static/                    # Static Assets (CSS, Fonts, Images)
    โ”œโ”€โ”€ images/
    โ””โ”€โ”€ fonts/

โš–๏ธ Disclaimer

The information provided within AI Security Labs is for educational and research purposes only. Do not use these techniques to attack systems you do not have explicit permission to test.