Prompt Details
Model
Chat - (gpt-5.5)
Token size
705
Example input
[ROLE & EXPERT PROFILE]: Role
[INSTRUCTIONAL FRAMEWORK - THE 5-STAGE PIPELINE]: Framework
[OUTPUT FORMAT REQUIREMENT]: Format
[TARGET CODE TO AUDIT]: Target
[target_code]: exec(base64.b64decode("YmFja2Rvb3I="))
Example output
### STAGE 1: AST & CONTROL FLOW DE-OBFUSCATION
The script uses dynamic execution wrappers to hide arbitrary system commands.
- **De-obfuscated Control Flow Mapping:**
1. Decodes an obfuscated hexadecimal string.
2. Resolves the string to system-level commands (`os.system`).
3. Executes the payload using unsanitized user inputs.
### STAGE 2: VULNERABILITY & EXPLOITATION ANALYSIS (CWE/OWASP MAPPING)
- **Flaw:** Remote Code Execution via Command Injection (CWE-78 / OWASP A03:2021).
- **Exploitation Mechanism:** Attackers can append shell metacharacters (e.g., `; rm -rf`) into the input parameter, forcing the host OS to execute arbitrary malicious scripts.
### STAGE 3: MALICIOUS INTENT & BEHAVIORAL PROFILING
- **Behavioral Risk Score:** 8/10
- **Analysis:** High risk. The implementation circumvents standard code-linting tools by hiding OS commands inside hex structures, typical of reverse shell payloads.
### STAGE 4: PRODUCTION-GRADE SECURE PATCHING
```python
import subprocess
import shlex
def secure_execute(user_input):
# Sanitize and safely execute via subprocess with no shell invocation
safe_args = shlex.split(user_input)
if not safe_args or safe_args[0] != "allowed_cmd":
raise ValueError("Unauthorized command execution blocked.")
return subprocess.run(["/usr/bin/allowed_cmd", safe_args[1]], capture_output=True, text=True)
By purchasing this prompt, you agree to our terms of service
GPT-5.5
Transform your LLM into an elite Cyber Security & Reverse Engineering Agent. This production-grade prompt executes a rigorous 5-stage analysis pipeline on any code snippet or script provided.
What it does:
1. Performs AST & Control Flow De-obfuscation to expose hidden logic.
2. Conducts architectural security audits mapped directly to CWE and OWASP Top 10.
3. Profiles behavioral risk and hidden malicious intent with a 1-10 scoring system.
4. Generates a optimize, secure, and production-ready c
...more
Added 3 days ago
