nyx/tests/dynamic_fixtures/python/cmdi_adversarial.py
2026-06-05 10:16:30 -05:00

12 lines
413 B
Python

"""Command injection — adversarial collision fixture.
Prints NYX_PWN_791_CMDI unconditionally without going through a shell sink.
Expected verdict: Inconclusive(OracleCollisionSuspected).
"""
def process_input(user_input):
"""Prints oracle marker without using a command execution sink."""
# Coincidental oracle match — not a shell sink.
print("NYX_PWN_791_CMDI")
return user_input.upper()