275 Commits

Author SHA1 Message Date
shiva108 163a59fb43 Add Gumroad-ready book cover assets in 16:9 formats 2026-04-30 15:47:50 +02:00
shiva108 1f8b097244 docs(rag): replace mermaid diagram with static image
- Removed the inline Mermaid diagram definition for the secure document ingestion pipeline.
- Replaced the diagram with a reference to a pre-rendered image (assets/rec21_secure_ingestion.png).
- Ensures consistent visual representation of the pipeline across different markdown viewers.
- Avoids potential rendering issues or inconsistencies associated with dynamic Mermaid diagrams.
2026-02-03 19:20:35 +01:00
shiva108 ba55bf3f6b chore: Removed outdated mermaid diagram for Secure Document Ingestion Pipeline from Chapter 12 2026-02-03 19:17:40 +01:00
shiva108 49ca732dc0 docs(supply-chain): add supply chain schematic and resize existing image
- Add a new schematic image to visually represent the supply chain components.
- Resize the 'Model Poisoning Flow' image for improved layout and readability.
- Enhance the visual clarity of the 'Data Provenance and Supply Chain Security' chapter.
2026-02-03 19:14:27 +01:00
shiva108 fbb4605a92 docs(supply-chain): refine images in supply chain security chapter
- remove outdated supply chain map image
- replace model poisoning flow image with a clearer version
- update image width for improved readability
- enhance visual explanations within the chapter
2026-02-03 19:12:44 +01:00
shiva108 ddb4d06f62 style: Center mermaid diagram in RAG Pipelines chapter. 2026-02-03 19:06:26 +01:00
shiva108 021be34cdb docs(mermaid): convert secure ingestion flow to graph TD
- Convert the secure ingestion flow diagram from a simple list to a mermaid graph TD flowchart.
- Enhance visual clarity and structure of the secure ingestion process.
- Explicitly show rejection paths for malware scans and format validation.
- Improve readability and understanding of the RAG pipeline's secure ingestion steps.
2026-02-03 19:01:04 +01:00
shiva108 9dd4a7ee58 docs: replace text-based lab topology diagram with a Mermaid diagram for improved visualization 2026-02-03 18:55:48 +01:00
shiva108 07778c2ddb docs: add arXiv links to seminal papers and correct a publication year. 2026-02-03 18:09:16 +01:00
shiva108 986856bef9 docs(lab-setup): enhance lab setup with isolation, LLM options, and safety tools
- Add detailed network isolation methods using Docker, VMs, and iptables for secure lab environments.
- Introduce multiple LLM setup options including Ollama, Text-Generation-WebUI, and llama.cpp for diverse testing needs.
- Integrate practical red teaming tools like Garak and a core Python environment for automated vulnerability scanning.
- Implement robust environmental safety mechanisms: a comprehensive kill switch, watchdog timer, API rate limiter, and cost tracker.
- Update .gitignore to exclude old_chapter_07.md, cleaning up old file references.
2026-02-03 18:08:54 +01:00
shiva108 dbd2bbb2f8 docs: Refine network isolation instructions, update the default model, and correct research paper publication years. 2026-02-03 17:48:30 +01:00
shiva108 40ad95f5e7 docs(kill-switch): add image for kill switch logic flowchart
- Add a visual flowchart for the safety watchdog script.
- Enhance understanding of the autonomous agent kill switch implementation.
- Illustrates the monitoring and termination logic for exceeding thresholds.
2026-02-03 17:42:03 +01:00
shiva108 2e9a7f4832 docs(lab-setup): update lab setup guide and model pricing
- Refresh model pricing for OpenAI, Anthropic, and Google APIs.
- Update tool installation instructions and notes for vLLM and llama.cpp.
- Change default Anthropic model to claude-3-5-haiku-latest.
- Add advisories to verify external tool versions and API pricing due to rapid evolution.
- Remove deprecated version: "3.8" from Docker Compose examples for clarity.
2026-02-03 17:38:37 +01:00
shiva108 ffab437091 chore: Updated Chapter 7 lab setup guide to include notes on tool versions, pricing information, and recommended hybrid approach 2026-02-03 17:16:42 +01:00
shiva108 b29f16ded7 docs(lab-setup): refine content for lab setup and safety chapter
- Reworded numerous sections and paragraphs for improved clarity and conciseness.
- Simplified sentence structures and adopted a more direct, imperative tone throughout the chapter.
- Shortened section titles and bullet points to enhance readability and reduce verbosity.
- Updated .gitignore to exclude final_audit.json, a new output file from lab processes.
- Aims to make the technical guidance more accessible and easier to digest for readers.
2026-02-03 14:02:00 +01:00
shiva108 656fa1795c docs(lab-setup): enhance LLM lab setup and red teaming guidance
- Added detailed decision guides for local LLM deployment options and virtualization.
- Enhanced guidance for commercial LLM API testing, including cost, rate limiting, and logging.
- Provided a comprehensive overview of network isolation strategies and their GPU support.
- Introduced essential red team tooling categories and explained the use of Garak.
- Detailed the importance of kill switches, watchdog timers, and rate limiters for lab safety.
2026-02-03 13:38:42 +01:00
shiva108 a20a78b594 docs(lab-setup): add diagrams to lab setup and safety chapter
- Embed three new diagrams in Chapter 7 documentation.
- Provide visual explanations for proxy traffic interception.
- Illustrate the architectural setup for Docker-based lab isolation.
- Detail the execution flow of the custom test harness.
- Enhance readability and comprehension of complex lab setup procedures.
2026-02-03 13:22:59 +01:00
shiva108 d87ccc7544 docs: Remove two topology diagrams from Chapter 7. 2026-02-03 13:18:28 +01:00
shiva108 dbf011307f docs: add topology diagrams for Docker and VM-based lab setups. 2026-02-03 13:12:48 +01:00
shiva108 9880e1497c docs(lab-setup): overhaul lab setup and safety chapter with practical guides
- Significantly expanded Chapter 7 with detailed guides and code examples for AI red teaming lab setup.
- Introduced comprehensive sections on local LLM deployment, API-based testing, and network isolation.
- Added critical safety controls including kill switches, watchdog timers, rate limiting, and cost management.
- Included advanced topics such as testing RAG, agent systems, and multi-modal models.
- Provided pre-engagement and daily operational checklists, risk management, and incident response procedures.
2026-02-03 13:12:48 +01:00
shiva108 6432385796 feat: Add vulnerability graph and terminal exploit list images to documentation assets. 2026-01-26 13:28:55 +01:00
shiva108 c90b3bc660 chore: Remove gitbook-cli from dependencies. 2026-01-24 09:55:28 +01:00
shiva108 1f629c1f24 docs: Standardize example and scenario blocks to YAML format for improved structure and readability, and refine associated headings. 2026-01-24 09:51:17 +01:00
shiva108 7fe557e4e3 docs(jailbreaks): format examples as YAML
- Convert all prompt and attack examples from plain text to YAML format.
- Enhance the readability and structure of complex jailbreak techniques.
- Provide clearer delineation of different parts within multi-step prompts.
2026-01-23 23:29:17 +01:00
shiva108 04b0325e64 refactor: Convert code examples in Chapter 15 from plain text to structured YAML format for improved clarity. 2026-01-23 23:24:07 +01:00
shiva108 529d06f00a fix(test-orchestrator): prevent SSRF and path traversal vulnerabilities
- Implement URL scheme validation for LLM endpoint connections.
- Mitigate Server-Side Request Forgery (SSRF) by ensuring only 'http' and 'https' schemes are allowed.
- Sanitize report output paths to prevent directory traversal attacks.
- Ensure test reports are saved only within the current working directory.
- Update RAG pipeline documentation to use Mermaid for improved flow diagram rendering.
2026-01-23 16:53:28 +01:00
shiva108 4964487bbe docs(prompt-injection): enhance code block formatting and clarity
- Converted generic text code blocks to specific formats like yaml, bash, math, and python.
- Improves syntax highlighting and semantic understanding of examples.
- Replaced several text blocks with Markdown tables for enhanced readability.
- Provides a clearer, more structured presentation for key concepts.
- Removed redundant horizontal rules at the end of the chapter.
2026-01-23 16:46:14 +01:00
shiva108 6d12219cfa docs(supply-chain-security): improve readability of attack examples and flows
- Reformat various attack examples and flows into more structured tables or code blocks.
- Convert plain text and generic YAML blocks to specific python, markdown, or yaml code fences.
- Update table headers and content for enhanced clarity and consistency across the document.
- Standardize the presentation of attack methodologies and vulnerability scan results.
- Enhance overall documentation readability for complex security concepts.
2026-01-23 16:13:45 +01:00
shiva108 8c90069c91 docs(supply-chain): format attack examples as tables and YAML
- Converted various plain text and code block examples into structured Markdown tables or YAML.
- Improved readability and clarity of complex attack scenarios and processes.
- Enhanced the visual presentation of security concepts within the chapter.
- Applied to examples including model naming, backdoor triggers, data poisoning, and supply chain attacks.
2026-01-23 16:08:30 +01:00
shiva108 3dc2cc6fa6 docs(rag): update example content structure
- Restructure the Content field in the RAG pipeline example.
- Convert the content from a single multi-line string to a list of items.
- Explicitly define question/answer pairs and system instruction injections.
- Improve the clarity and readability of the YAML example for RAG content.
2026-01-23 16:02:15 +01:00
shiva108 90785b44e5 docs(rag): update malicious document example format
- The example malicious document in the RAG pipelines chapter was updated.
- Changed the code block from markdown to YAML syntax.
- This provides a more structured representation of the document content.
- Improves clarity and consistency of the example's presentation.
2026-01-23 15:56:41 +01:00
shiva108 088eeaf3df docs(rag-pipelines): refactor metadata leakage example to table
- Converted the "Example Attack" section for metadata leakage from a text block to a Markdown table.
- This change enhances readability and provides a clearer, more structured presentation of the information.
- Delineates leakage types and the specific information revealed during a metadata attack.
2026-01-23 15:53:24 +01:00
shiva108 e946e00f09 docs(rag): format example queries and trojan document
- Converted RAG query examples from plain text to a Markdown table.
- Updated the example Trojan Document to use a YAML code block.
- Enhanced the readability and structure of code examples within the RAG chapter.
2026-01-23 15:49:10 +01:00
shiva108 7fc56b8ad3 docs(rag-pipelines): improve formatting of RAG attack examples and scenarios
- Convert attack flow and scenario steps into structured Markdown tables.
- Enhance readability for complex sequences like chunk reconstruction and provenance attacks.
- Update the restricted user query example to use YAML block for better representation of multi-line responses.
- Improve overall presentation and clarity of examples within the RAG Pipelines chapter.
2026-01-23 15:44:19 +01:00
shiva108 5190be05bf docs(rag-pipelines): update RAG pipeline example format to YAML
- Converted a plain text example block to YAML format.
- Enhances clarity and structure for the RAG pipeline attack scenario.
- Improves consistency in documentation examples.
2026-01-23 15:38:24 +01:00
shiva108 cc3dfd39d4 added yaml block 2026-01-23 15:32:58 +01:00
shiva108 5c59a42179 docs(rag-pipelines): format RAG pipeline test cases as a table
- Reformat test cases for Retrieval Augmented Generation (RAG) pipeline vulnerabilities.
- Present test scenarios, inputs, expected behaviors, and vulnerability indicators in a clear Markdown table.
- Enhance readability and consistency of the documentation for security test cases.
2026-01-23 15:31:52 +01:00
shiva108 423493c24c docs(rag-pipelines): format attacker query example as table
- Converted the "Attacker Query Sequence" example from plain text to a Markdown table.
- Improves readability and structure of the example content.
- Enhances presentation for better understanding of the query steps and outcomes.
2026-01-23 15:27:42 +01:00
shiva108 91dccbba6f Remove double illustrations. 2026-01-22 23:55:33 +01:00
shiva108 d2e391097f .. 2026-01-22 23:41:07 +01:00
shiva108 c288ff9aed fix(ch07): Replace Mermaid diagrams with generated static PNGs for GitBook compatibility 2026-01-22 23:40:32 +01:00
shiva108 0523c5ee72 fix: Restore standard Mermaid markdown syntax for GitBook 2026-01-22 23:37:21 +01:00
shiva108 230f9c1806 fix: Convert Mermaid diagrams to GitBook syntax using {% mermaid %} blocks 2026-01-22 23:34:22 +01:00
shiva108 0bbd5ad728 mermaid 2026-01-22 23:29:25 +01:00
shiva108 b6f1fc6d61 Update and audit 2026-01-22 23:24:47 +01:00
shiva108 438742986b 512 2026-01-22 23:16:00 +01:00
shiva108 196179a678 udpate 41 2026-01-22 21:05:23 +01:00
shiva108 a6798c37be update 41 2026-01-22 20:58:07 +01:00
shiva108 4ac3b0e296 feat: add and embed three new diagrams to the Prompt Injection Playbook. 2026-01-22 15:12:12 +01:00
shiva108 9394bfdf3a w Refactor headings and bullet points for better readability in docs/Chapter_46_Conclusion_and_Next_Steps.md 2026-01-22 11:38:36 +01:00