364 Commits

Author SHA1 Message Date
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
111e3b60b9 feat: remove the PIT continuous integration workflow 2026-01-27 16:33:50 +01:00
shiva108
99ff91bdb2 feat: Update pit scan command invocations to include run subcommand and add a new model-specific test. 2026-01-27 16:33:25 +01:00
shiva108
0061ac5de9 feat: Add CLI option to specify the model and refine test result output formatting for pattern ID and evidence details. 2026-01-27 15:05:38 +01:00
shiva108
5ac57fb02f feat: Hardcode LLM client timeout to 60 seconds to accommodate slow LLMs. 2026-01-27 11:47:55 +01:00
shiva108
23b94c5038 feat: Refactor model discovery and selection, filter embedding models, update report summary, and optimize prompt sending with max_tokens. 2026-01-27 10:59:44 +01:00
shiva108
1723769ee0 feat(discovery): add LLM service auto-discovery and multi-model testing
- Implement automatic port scanning for LLM services if no port is provided.
- Discover available models from OpenAI-compatible and Ollama API endpoints.
- Enable the attack phase to test against multiple discovered models.
- Improve usability by reducing manual configuration for common LLM setups.
- Enhance test coverage by automatically validating against various models.
2026-01-27 10:31:18 +01:00
shiva108
e51a22a43c feat: add port 1234 to common LLM service discovery ports 2026-01-27 10:22:11 +01:00
shiva108
9a6acc8fce feat: Add optional model configuration to TargetConfig. 2026-01-27 10:16:53 +01:00
shiva108
9f73ae23ff chore: Added optional 'model' parameter to schema.py in prompt_injection_tester 2026-01-27 10:15:51 +01:00
shiva108
ba0e3f6ef6 refactor: Update all relative imports to absolute imports across modules. 2026-01-27 10:15:49 +01:00
shiva108
e48c7b1447 chore(pit): remove empty placeholder files
- remove empty os, sys, and typer files from the pit directory
- these files were likely created as placeholders during initial setup
- they serve no functional purpose and were never populated with content
- improves project hygiene by removing unused and redundant artifacts
2026-01-27 00:35:11 +01:00
shiva108
be43e10945 feat: Introduce structural tests and new modules for the Prompt Injection Tester (PIT) tool. 2026-01-27 00:32:34 +01:00
shiva108
4917c2e7b5 docs: Remove obsolete implementation and phase completion documentation. 2026-01-27 00:14:39 +01:00
shiva108
fb174f034e feat: Introduce a comprehensive release guide for the prompt injection tester and refine gitignore rules for new build artifacts and the release file. 2026-01-27 00:11:35 +01:00
shiva108
6aae7eef17 chore: Ignore DEPLOYMENT.md. 2026-01-27 00:07:53 +01:00
shiva108
ef8573b445 docs: Update gitignore to exclude PHASE2_COMPLETE.md and improve documentation readability with minor formatting adjustments. 2026-01-27 00:06:57 +01:00
shiva108
88939ecf0d feat: Add discover_llm.py script to find local LLM endpoints and ignore discovery_output.txt. 2026-01-26 23:07:39 +01:00
shiva108
1238480ecc feat: Add a validation test script for the PIT tool and update .gitignore to exclude new test-related files. 2026-01-26 20:38:47 +01:00
shiva108
9ed5b09aff feat: Introduce the Prompt Injection Tester (PIT) tool, including its CI workflow, Docker setup, and comprehensive changelog. 2026-01-26 20:30:28 +01:00
shiva108
57b50d45b6 feat: Introduce Prompt Injection Tester with its architecture, containerization, and CI workflow, along with related .gitignore updates and a .ripgreprc config. 2026-01-26 20:27:06 +01:00
shiva108
9c66e0f1bd feat: Add pattern development guide, user guide, and report tests for the prompt injection tester, and update gitignore. 2026-01-26 20:21:57 +01:00
shiva108
5ff8fb5c01 feat: add an end-to-end test script for the prompt injection tester. 2026-01-26 20:14:49 +01:00
shiva108
7f750c4670 feat(orchestrator): implement new pipeline for auto scans
- Introduce a new sequential pipeline architecture for automated scans.
- Update the scan command to utilize the new pipeline for auto mode.
- Integrate InjectionTester for actual discovery of injection points within the DiscoveryPhase.
- Implement real attack execution in the AttackPhase using InjectionTester and pattern registry.
- Enhance the VerificationPhase to process detailed TestResult objects with detection scoring.
2026-01-26 20:12:14 +01:00
shiva108
4534e35d79 docs(cli): revamp CLI specification for modern UX
- Completely rewrites SPECIFICATION.md to detail a new CLI architecture and user experience for PIT v2.0.0.
- Introduces a comprehensive command hierarchy, detailed terminal output mockups across 5 phases, and extensive options for pit scan.
- Focuses on a "premium TUI" design philosophy, "one-command" operation, zero-config defaults, and enhanced error handling.
- Adds sections for configuration, pattern, and history management, along with accessibility and performance specifications.
- Updates .gitignore to reflect the new documentation structure, moving legacy and new spec files into dedicated docs subdirectories.
2026-01-26 19:39:44 +01:00
shiva108
5b59811989 feat: Introduce a new configuration system for PIT using Pydantic schemas for target, attack, reporting, and authorization, with a loader for YAML files and CLI arguments. 2026-01-26 18:58:23 +01:00
shiva108
3bad401ada chore(gitignore): add specification file to gitignore
- Add SPECIFICATION.md to the list of ignored files.
- Prevent tracking of a new project specification document.
- Ensure only relevant source files are committed to the repository.
2026-01-26 17:46:59 +01:00
shiva108
494d7541af feat: implement orchestrator module to manage LLM endpoint discovery and testing workflows. 2026-01-26 17:42:19 +01:00
shiva108
e564d389fc build: Add PHASE1_COMPLETE.md to .gitignore. 2026-01-26 16:13:14 +01:00
shiva108
be3b06ba75 build(prompt-injection-tester): add typer and rich dependencies for pit script
- Add typer and rich to the prompt_injection_tester project dependencies.
- Introduce pit as a new command-line entry point in pyproject.toml.
- These dependencies are essential for developing the new pit command-line interface.
2026-01-26 16:12:49 +01:00
shiva108
1ade6e12f9 chore: ignore CLI_ARCHITECTURE.md in tools/prompt_injection_tester/. 2026-01-26 16:03:32 +01:00
shiva108
30a80f83f6 chore: ignore CLI specification for the prompt injection tester tool. 2026-01-26 15:58:03 +01:00