auto: cycle 0 (prompt-injection) — add ii_css_font_injection pattern …#64
Merged
Merged
Conversation
…(arxiv:2505.16957) Adds detection for CSS @font-face rules with remote HTTP(S) font sources in retrieved or external web content. Malicious fonts remap ASCII characters so human readers see innocuous text while the LLM tokenises adversarial injection instructions. Demonstrated against MCP-enabled agents in two attack scenarios (content relay + data exfiltration via tool calls) with safety-filter bypass (arxiv:2505.16957, May 2026). Files changed: - aigis/filters/patterns.py: add ii_css_font_injection to INDIRECT_INJECTION_PATTERNS - tests/test_prompt_injection_cycle0_pass4.py: 16 new tests (all pass) - auto-improvement/: research, changes, pending, INDEX, ROTATION updates Signed-off-by: killertcell428 <killertcell428@gmail.com>
eebe87e to
5964d68
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…(arxiv:2505.16957)
Adds detection for CSS @font-face rules with remote HTTP(S) font sources in retrieved or external web content. Malicious fonts remap ASCII characters so human readers see innocuous text while the LLM tokenises adversarial injection instructions. Demonstrated against MCP-enabled agents in two attack scenarios (content relay + data exfiltration via tool calls) with safety-filter bypass (arxiv:2505.16957, May 2026).
Files changed:
Summary
Closes #
Changes
Type of change
Testing
pytest tests/ -vpasses locallyFor new detection patterns, confirm both:
Checklist
ruff checkpasses)mypy aigis/passes)docs/api-reference.mdCHANGELOG.mdupdated under[Unreleased]Screenshots / output