Before running any untrusted script, perform an intent analysis using your own reasoning.
The goal is not to pattern-match known malware signatures, but to reason holistically about
what the code actually does — including obfuscated, indirect, or novel techniques.
Apply this skill before executing any script that originated from:
os.system, subprocess, exec, eval on external input)base64, chr() chains, compressed payloads, dynamic imports)try/except that silently swallows errorsIntent Analysis: <script name or description>
Verdict: ✅ SAFE | ⚠️ REVIEW | 🚫 BLOCK
Summary:
<1-3 sentence plain-English description of what the code actually does>
Findings:
- <finding 1>
- <finding 2>
...
Recommendation:
<what to do next — run it, ask the user, refuse, etc.>
You cannot know all possible malicious techniques in advance. Do not rely solely on
known-bad patterns. Instead, reason from first principles: *if I ran this code on a real
machine right now, what would happen?* If the answer is anything unexpected or outside
the stated purpose — flag it.
When in doubt, block and explain. A false positive is far less costly than a compromised machine.
共 1 个版本