mirror of
https://github.com/Shiva108/ai-llm-red-team-handbook.git
synced 2026-05-14 12:48:16 +02:00
b3d3bac51f
- Extracted all code examples from handbook chapters - Organized into 15 attack categories - Created shared utilities (api_client, validators, logging, constants) - Added workflow orchestration scripts - Implemented install.sh for easy setup - Renamed all scripts to descriptive functional names - Added comprehensive README and documentation - Included pytest test suite and configuration
27 lines
697 B
Python
27 lines
697 B
Python
#!/usr/bin/env python3
|
|
"""
|
|
create_stealth_injection() Method
|
|
|
|
Source: Chapter_22_Cross_Modal_Multimodal_Attacks
|
|
Category: multimodal
|
|
"""
|
|
|
|
import argparse
|
|
import sys
|
|
|
|
# Purpose: Hide malicious text while showing innocent cover text
|
|
draw.text((50, 50), cover_text, fill='black', font=large_font) # Prominent
|
|
draw.text((50, 550), malicious_text, fill='gray', font=small_font) # Hidden
|
|
|
|
|
|
def main():
|
|
"""Command-line interface."""
|
|
parser = argparse.ArgumentParser(description=__doc__)
|
|
parser.add_argument("--verbose", "-v", action="store_true", help="Verbose output")
|
|
args = parser.parse_args()
|
|
|
|
# TODO: Add main execution logic
|
|
pass
|
|
|
|
if __name__ == "__main__":
|
|
main() |