feat: Add placeholder chapters 25-46, book configuration files, a creation script, and update the summary.

This commit is contained in:
shiva108 committed 2025-12-05 10:41:12 +01:00
1 parent 5a034972e3
commit 419099c8ac
28 files changed
+922 -1

No files matched your search

+105
View File
@@ -0,0 +1,105 @@
# GitBook Configuration
# This file configures GitBook integration and build settings
# Root directory for documentation
root: ./docs
# Structure
structure:
readme: AI LLM Red Team Handbook.md
summary: SUMMARY.md
glossary: GLOSSARY.md
languages: LANGS.md
# Redirects
redirects:
README: docs/AI LLM Red Team Handbook.md
# PDF Options
pdf:
pageNumbers: true
fontSize: 12
paperSize: a4
margin:
top: 56
bottom: 56
right: 62
left: 62
# eBook Options
epub:
stylesheet: styles/epub.css
mobi:
stylesheet: styles/mobi.css
# Plugins
plugins:
- search-plus
- advanced-emoji
- github
- anchors
- splitter
- sharing
- fontsettings
- highlight
- livereload
- copy-code-button
- code
- mermaid-gb3
- expandable-chapters-small
- back-to-top-button
- page-treeview
- klipse
- prism
- insert-logo
- 3-ba
- theme-comscore
# Plugin Configuration
pluginsConfig:
search-plus:
maxIndexSize: 5000000
github:
url: https://github.com/yourusername/ai-llm-red-team-handbook
sharing:
facebook: false
twitter: true
linkedin: true
all: ["facebook", "twitter", "linkedin", "weibo", "instapaper"]
fontsettings:
theme: "night"
family: "sans"
size: 2
insert-logo:
url: assets/logo.png
style: "background: none; max-height: 50px;"
theme-comscore:
token: "Your-Token-Here"
position: "bottom"
# Variables
variables:
handbook_version: "2.0"
last_updated: "December 2024"
author: "AI Security Research Team"
chapters_count: "24"
# Links
links:
sidebar:
GitHub Repository: https://github.com/yourusername/ai-llm-red-team-handbook
Report Issue: https://github.com/yourusername/ai-llm-red-team-handbook/issues
# Styles
styles:
website: styles/website.css
ebook: styles/ebook.css
pdf: styles/pdf.css
mobi: styles/mobi.css
epub: styles/epub.css
+187
View File
@@ -0,0 +1,187 @@
# GitHub Pages Deployment Instructions
This repository is configured for both **GitBook** and **GitHub Pages** deployment.
## GitHub Pages Setup
### 1. Enable GitHub Pages
1. Go to your repository on GitHub
2. Click **Settings** → **Pages**
3. Under **Source**, select:
- Branch: `main` (or `master`)
- Folder: `/ (root)`
4. Click **Save**
### 2. Update Configuration
Edit `_config.yml` and update these fields:
```yaml
baseurl: "/your-repo-name" # Your repository name
url: "https://yourusername.github.io" # Your GitHub Pages URL
github_username: yourusername # Your GitHub username
```
### 3. Access Your Site
After a few minutes, your site will be available at:
```
https://yourusername.github.io/your-repo-name/
```
### 4. Custom Domain (Optional)
To use a custom domain:
1. Add a `CNAME` file to the root with your domain name
2. Configure DNS settings at your domain registrar
3. Enable HTTPS in GitHub Pages settings
---
## GitBook Setup
### Method 1: GitBook Cloud (Recommended)
1. Go to [gitbook.com](https://www.gitbook.com/)
2. Sign in and click **New Space**
3. Select **Import from GitHub**
4. Choose your repository
5. GitBook will auto-detect `SUMMARY.md` and build your book
### Method 2: GitBook CLI (Local)
```bash
# Install GitBook CLI
npm install -g gitbook-cli
# Navigate to your repository
cd ai-llm-red-team-handbook
# Install plugins
gitbook install
# Serve locally
gitbook serve
# Build static site
gitbook build
# The built site will be in _book/ directory
```
### 3. GitBook Plugins
The repository includes these plugins (in `book.json`):
- **search-plus**: Enhanced search
- **copy-code-button**: Copy code blocks
- **github**: GitHub integration
- **prism**: Syntax highlighting
- **page-treeview**: Chapter navigation
To install all plugins:
```bash
gitbook install
```
---
## Configuration Files
| File | Purpose | Platform |
| ----------------- | -------------------------- | ------------ |
| `_config.yml` | Jekyll configuration | GitHub Pages |
| `.gitbook.yaml` | GitBook integration | GitBook |
| `book.json` | GitBook plugins & settings | GitBook |
| `docs/SUMMARY.md` | Table of contents | GitBook |
| `README.md` | Homepage | Both |
---
## Building for Different Formats
### PDF Export (GitBook)
```bash
gitbook pdf ./ ./handbook.pdf
```
### eBook Export (GitBook)
```bash
# EPUB
gitbook epub ./ ./handbook.epub
# MOBI
gitbook mobi ./ ./handbook.mobi
```
---
## Customization
### GitHub Pages Theme
Change theme in `_config.yml`:
```yaml
theme: jekyll-theme-cayman # Current
# theme: jekyll-theme-minimal
# theme: jekyll-theme-slate
# theme: jekyll-theme-architect
```
### GitBook Styling
Create custom CSS in `styles/website.css`:
```css
/* Custom styles for GitBook */
.book-summary {
background: #f7f7f7;
}
```
---
## Troubleshooting
### GitHub Pages not building?
- Check that `_config.yml` is valid YAML
- Ensure your branch name is correct in settings
- Wait 5-10 minutes for first build
### GitBook plugins not working?
```bash
# Clear cache and reinstall
rm -rf node_modules
rm -rf _book
gitbook install
gitbook serve
```
### Links broken?
- Use relative links: `[Chapter 1](docs/Chapter_01.md)`
- Avoid absolute paths
- Test locally before pushing
---
## Next Steps
1. ✅ Push these configuration files to GitHub
2. ✅ Enable GitHub Pages in repository settings
3. ✅ Connect to GitBook cloud (optional)
4. ✅ Customize URLs and branding
5. ✅ Share your published handbook!
---
**Your handbook is now ready for both GitBook and GitHub Pages!** 🎉
+89
View File
@@ -0,0 +1,89 @@
# GitHub Pages Configuration (Jekyll)
# This file configures your site for GitHub Pages with the Cayman theme
# Site Settings
title: "AI LLM Red Team Handbook"
description: "The Complete Consultant's Guide to AI & LLM Security Testing"
author: "AI Security Research Team"
email: contact@example.com
baseurl: "/ai-llm-red-team-handbook" # Change this to your repo name
url: "https://yourusername.github.io" # Change to your GitHub Pages URL
# Theme
theme: jekyll-theme-cayman
# Alternative themes you can use:
# theme: jekyll-theme-minimal
# theme: jekyll-theme-slate
# theme: jekyll-theme-architect
# Build Settings
markdown: kramdown
kramdown:
input: GFM
syntax_highlighter: rouge
syntax_highlighter_opts:
block:
line_numbers: true
# Plugins
plugins:
- jekyll-sitemap
- jekyll-seo-tag
- jekyll-feed
# Exclude from processing
exclude:
- Gemfile
- Gemfile.lock
- node_modules
- vendor/
- .git/
- .github/
- scripts/
- "*.py"
# Include
include:
- _pages
- docs
# Collections
collections:
docs:
output: true
permalink: /docs/:name/
# Defaults
defaults:
- scope:
path: ""
type: "docs"
values:
layout: "default"
author: "AI Security Research Team"
# Navigation
header_pages:
- README.md
- docs/SUMMARY.md
# Google Analytics (optional - add your tracking ID)
# google_analytics: UA-XXXXXXXXX-X
# Social Links (optional)
github_username: yourusername
# twitter_username: yourtwitter
# linkedin_username: yourlinkedin
# SEO
lang: en-US
logo: /assets/logo.png # Add if you have a logo
# Reading Time (optional)
show_reading_time: true
# Table of Contents
toc:
enabled: true
min_level: 2
max_level: 3
+120
View File
@@ -0,0 +1,120 @@
{
"title": "AI LLM Red Team Handbook",
"description": "The Complete Consultant's Guide to AI & LLM Security Testing",
"author": "AI Security Research Team",
"language": "en",
"direction": "ltr",
"gitbook": ">=3.2.3",
"plugins": [
"search-plus",
"advanced-emoji",
"github",
"anchors",
"splitter",
"sharing",
"fontsettings",
"highlight",
"copy-code-button",
"expandable-chapters-small",
"back-to-top-button",
"page-treeview",
"prism",
"-lunr",
"-search",
"theme-comscore",
"insert-logo",
"custom-favicon",
"tbfed-pagefooter",
"chapter-fold",
"code",
"alerts"
],
"pluginsConfig": {
"search-plus": {
"maxIndexSize": 5000000,
"ignoreSpecialCharacters": false
},
"github": {
"url": "https://github.com/yourusername/ai-llm-red-team-handbook"
},
"sharing": {
"facebook": false,
"twitter": true,
"linkedin": true,
"all": ["facebook", "twitter", "linkedin", "weibo", "instapaper"]
},
"fontsettings": {
"theme": "night",
"family": "sans",
"size": 2
},
"insert-logo": {
"url": "assets/logo.png",
"style": "background: none; max-height: 50px; min-height: 50px"
},
"custom-favicon": {
"favicon": "assets/favicon.ico"
},
"tbfed-pagefooter": {
"copyright": "Copyright © AI Security Research Team 2024",
"modify_label": "Last updated:",
"modify_format": "YYYY-MM-DD HH:mm:ss"
},
"prism": {
"css": [
"prism-themes/themes/prism-ghcolors.css"
],
"lang": {
"flow": "typescript"
}
},
"theme-comscore": {
"token": "Your-Token-Here"
}
},
"variables": {
"version": "2.0",
"updated": "December 2024",
"chapters": "24 Complete Chapters",
"examples": "12+ Practical Attack Demonstrations"
},
"links": {
"sidebar": {
"GitHub Repository": "https://github.com/yourusername/ai-llm-red-team-handbook",
"Report an Issue": "https://github.com/yourusername/ai-llm-red-team-handbook/issues",
"Contribute": "https://github.com/yourusername/ai-llm-red-team-handbook/blob/main/CONTRIBUTING.md"
}
},
"styles": {
"website": "styles/website.css",
"ebook": "styles/ebook.css",
"pdf": "styles/pdf.css",
"mobi": "styles/mobi.css",
"epub": "styles/epub.css"
},
"structure": {
"readme": "AI LLM Red Team Handbook.md",
"summary": "SUMMARY.md"
},
"pdf": {
"pageNumbers": true,
"fontSize": 12,
"fontFamily": "Arial",
"paperSize": "a4",
"margin": {
"top": 56,
"bottom": 56,
"right": 62,
"left": 62
},
"headerTemplate": null,
"footerTemplate": null
}
}
+59
View File
@@ -0,0 +1,59 @@
#!/bin/bash
# Create placeholder chapters 25-46
cd /home/e/Desktop/ai-llm-red-team-handbook/docs
# Chapter titles (you can customize these)
declare -A chapters=(
[25]="Advanced Adversarial ML"
[26]="Supply Chain Attacks on AI"
[27]="Federated Learning Attacks"
[28]="AI Privacy Attacks"
[29]="Model Inversion Attacks"
[30]="Backdoor Attacks"
[31]="AI System Reconnaissance"
[32]="Automated Attack Frameworks"
[33]="Red Team Automation"
[34]="Defense Evasion Techniques"
[35]="Post-Exploitation in AI Systems"
[36]="Reporting and Communication"
[37]="Remediation Strategies"
[38]="Continuous Red Teaming"
[39]="AI Bug Bounty Programs"
[40]="Compliance and Standards"
[41]="Industry Best Practices"
[42]="Case Studies and War Stories"
[43]="Future of AI Red Teaming"
[44]="Emerging Threats"
[45]="Building an AI Red Team Program"
[46]="Conclusion and Next Steps"
)
# Create each chapter file
for i in {25..46}; do
title="${chapters[$i]}"
filename="Chapter_$(printf "%02d" $i)_${title// /_}.md"
cat > "$filename" << EOC
# Chapter $i: $title
_This chapter is currently under development._
## TBD
Content for this chapter will be added in future updates.
---
**Status:** Coming Soon
**Planned Topics:**
- TBD
---
EOC
echo "✓ Created: $filename"
done
echo ""
echo "All placeholder chapters (25-46) created successfully!"
@@ -0,0 +1,15 @@
# Chapter 25: Advanced Adversarial ML
_This chapter is currently under development._
## TBD
Content for this chapter will be added in future updates.
---
**Status:** Coming Soon
**Planned Topics:**
- TBD
---
@@ -0,0 +1,15 @@
# Chapter 26: Supply Chain Attacks on AI
_This chapter is currently under development._
## TBD
Content for this chapter will be added in future updates.
---
**Status:** Coming Soon
**Planned Topics:**
- TBD
---
@@ -0,0 +1,15 @@
# Chapter 27: Federated Learning Attacks
_This chapter is currently under development._
## TBD
Content for this chapter will be added in future updates.
---
**Status:** Coming Soon
**Planned Topics:**
- TBD
---
+15
View File
@@ -0,0 +1,15 @@
# Chapter 28: AI Privacy Attacks
_This chapter is currently under development._
## TBD
Content for this chapter will be added in future updates.
---
**Status:** Coming Soon
**Planned Topics:**
- TBD
---
@@ -0,0 +1,15 @@
# Chapter 29: Model Inversion Attacks
_This chapter is currently under development._
## TBD
Content for this chapter will be added in future updates.
---
**Status:** Coming Soon
**Planned Topics:**
- TBD
---
+15
View File
@@ -0,0 +1,15 @@
# Chapter 30: Backdoor Attacks
_This chapter is currently under development._
## TBD
Content for this chapter will be added in future updates.
---
**Status:** Coming Soon
**Planned Topics:**
- TBD
---
@@ -0,0 +1,15 @@
# Chapter 31: AI System Reconnaissance
_This chapter is currently under development._
## TBD
Content for this chapter will be added in future updates.
---
**Status:** Coming Soon
**Planned Topics:**
- TBD
---
@@ -0,0 +1,15 @@
# Chapter 32: Automated Attack Frameworks
_This chapter is currently under development._
## TBD
Content for this chapter will be added in future updates.
---
**Status:** Coming Soon
**Planned Topics:**
- TBD
---
+15
View File
@@ -0,0 +1,15 @@
# Chapter 33: Red Team Automation
_This chapter is currently under development._
## TBD
Content for this chapter will be added in future updates.
---
**Status:** Coming Soon
**Planned Topics:**
- TBD
---
@@ -0,0 +1,15 @@
# Chapter 34: Defense Evasion Techniques
_This chapter is currently under development._
## TBD
Content for this chapter will be added in future updates.
---
**Status:** Coming Soon
**Planned Topics:**
- TBD
---
@@ -0,0 +1,15 @@
# Chapter 35: Post-Exploitation in AI Systems
_This chapter is currently under development._
## TBD
Content for this chapter will be added in future updates.
---
**Status:** Coming Soon
**Planned Topics:**
- TBD
---
@@ -0,0 +1,15 @@
# Chapter 36: Reporting and Communication
_This chapter is currently under development._
## TBD
Content for this chapter will be added in future updates.
---
**Status:** Coming Soon
**Planned Topics:**
- TBD
---
+15
View File
@@ -0,0 +1,15 @@
# Chapter 37: Remediation Strategies
_This chapter is currently under development._
## TBD
Content for this chapter will be added in future updates.
---
**Status:** Coming Soon
**Planned Topics:**
- TBD
---
+15
View File
@@ -0,0 +1,15 @@
# Chapter 38: Continuous Red Teaming
_This chapter is currently under development._
## TBD
Content for this chapter will be added in future updates.
---
**Status:** Coming Soon
**Planned Topics:**
- TBD
---
+15
View File
@@ -0,0 +1,15 @@
# Chapter 39: AI Bug Bounty Programs
_This chapter is currently under development._
## TBD
Content for this chapter will be added in future updates.
---
**Status:** Coming Soon
**Planned Topics:**
- TBD
---
@@ -0,0 +1,15 @@
# Chapter 40: Compliance and Standards
_This chapter is currently under development._
## TBD
Content for this chapter will be added in future updates.
---
**Status:** Coming Soon
**Planned Topics:**
- TBD
---
@@ -0,0 +1,15 @@
# Chapter 41: Industry Best Practices
_This chapter is currently under development._
## TBD
Content for this chapter will be added in future updates.
---
**Status:** Coming Soon
**Planned Topics:**
- TBD
---
@@ -0,0 +1,15 @@
# Chapter 42: Case Studies and War Stories
_This chapter is currently under development._
## TBD
Content for this chapter will be added in future updates.
---
**Status:** Coming Soon
**Planned Topics:**
- TBD
---
@@ -0,0 +1,15 @@
# Chapter 43: Future of AI Red Teaming
_This chapter is currently under development._
## TBD
Content for this chapter will be added in future updates.
---
**Status:** Coming Soon
**Planned Topics:**
- TBD
---
+15
View File
@@ -0,0 +1,15 @@
# Chapter 44: Emerging Threats
_This chapter is currently under development._
## TBD
Content for this chapter will be added in future updates.
---
**Status:** Coming Soon
**Planned Topics:**
- TBD
---
@@ -0,0 +1,15 @@
# Chapter 45: Building an AI Red Team Program
_This chapter is currently under development._
## TBD
Content for this chapter will be added in future updates.
---
**Status:** Coming Soon
**Planned Topics:**
- TBD
---
@@ -0,0 +1,15 @@
# Chapter 46: Conclusion and Next Steps
_This chapter is currently under development._
## TBD
Content for this chapter will be added in future updates.
---
**Status:** Coming Soon
**Planned Topics:**
- TBD
---
+32 -1
View File
@@ -43,6 +43,37 @@
- [Chapter 23: Advanced Persistence and Chaining](Chapter_23_Advanced_Persistence_Chaining.md)
- [Chapter 24: Social Engineering with LLMs](Chapter_24_Social_Engineering_LLMs.md)
## Part V: Defense & Mitigation
- [Chapter 25: Advanced Adversarial ML](Chapter_25_Advanced_Adversarial_ML.md)
- [Chapter 26: Supply Chain Attacks on AI](Chapter_26_Supply_Chain_Attacks_on_AI.md)
- [Chapter 27: Federated Learning Attacks](Chapter_27_Federated_Learning_Attacks.md)
- [Chapter 28: AI Privacy Attacks](Chapter_28_AI_Privacy_Attacks.md)
- [Chapter 29: Model Inversion Attacks](Chapter_29_Model_Inversion_Attacks.md)
- [Chapter 30: Backdoor Attacks](Chapter_30_Backdoor_Attacks.md)
## Part VI: Operational Workflows
- [Chapter 31: AI System Reconnaissance](Chapter_31_AI_System_Reconnaissance.md)
- [Chapter 32: Automated Attack Frameworks](Chapter_32_Automated_Attack_Frameworks.md)
- [Chapter 33: Red Team Automation](Chapter_33_Red_Team_Automation.md)
- [Chapter 34: Defense Evasion Techniques](Chapter_34_Defense_Evasion_Techniques.md)
- [Chapter 35: Post-Exploitation in AI Systems](Chapter_35_Post-Exploitation_in_AI_Systems.md)
- [Chapter 36: Reporting and Communication](Chapter_36_Reporting_and_Communication.md)
- [Chapter 37: Remediation Strategies](Chapter_37_Remediation_Strategies.md)
- [Chapter 38: Continuous Red Teaming](Chapter_38_Continuous_Red_Teaming.md)
- [Chapter 39: AI Bug Bounty Programs](Chapter_39_AI_Bug_Bounty_Programs.md)
## Part VII: Advanced Topics
- [Chapter 40: Compliance and Standards](Chapter_40_Compliance_and_Standards.md)
- [Chapter 41: Industry Best Practices](Chapter_41_Industry_Best_Practices.md)
- [Chapter 42: Case Studies and War Stories](Chapter_42_Case_Studies_and_War_Stories.md)
- [Chapter 43: Future of AI Red Teaming](Chapter_43_Future_of_AI_Red_Teaming.md)
- [Chapter 44: Emerging Threats](Chapter_44_Emerging_Threats.md)
- [Chapter 45: Building an AI Red Team Program](Chapter_45_Building_an_AI_Red_Team_Program.md)
- [Chapter 46: Conclusion and Next Steps](Chapter_46_Conclusion_and_Next_Steps.md)
## Reference Materials
- [Appendix A: Red Team Tools, Resources, and Further Reading](AI LLM Red Team Handbook.md#appendix-a-red-team-tools-resources-and-further-reading)
_(To be added)_