Skip to main content
redteams.ai
All tags

# comments

2 articlestagged with “comments

Documentation-Based Code Injection

Embedding adversarial instructions in code comments, docstrings, and documentation files that influence AI code generation.

code-gendocumentationinjectioncomments
Intermediate

Prompt Injection via Code

Hiding prompt injection payloads in code artifacts — through comments, variable names, strings, docstrings, and file metadata — to attack AI coding tools and code-processing pipelines.

prompt-injectioncode-injectioncommentsvariable-namescode-processing
Intermediate