eval() call detected
High
- Category
- Dangerous Code Execution
- Content
if not expr: return None try: return str(int(eval(expr))) except Exception: pass expr = expr.rstrip("+-*/")- Confidence
- 98% confidence
- Finding
- return str(int(eval(expr)))
Security audit
Security checks across malware telemetry and agentic risk
This OA timesheet helper is purpose-aligned, but it can log in with stored credentials and change or delete business records without strong confirmation or secret-handling safeguards.
Install only if you trust the publisher and need an agent to operate your OA account. Use encrypted credentials, protect OA_ENC_KEY and any local key cache, avoid saving printed tokens, verify the base URL, and require explicit confirmation before submit, update, batch, or delete actions.
if not expr:
return None
try:
return str(int(eval(expr)))
except Exception:
pass
expr = expr.rstrip("+-*/")pass
expr = expr.rstrip("+-*/")
try:
return str(int(eval(expr)))
except Exception:
return Noneif _has_modules(candidate, required_modules):
new_env = os.environ.copy()
new_env[ENV_GUARD] = "1"
os.execve(candidate, [candidate, *sys.argv], new_env)
missing = ", ".join(required_modules)
raise RuntimeError(key = f.read().strip()
if not key:
raise ValueError(f"找不到解密密钥(环境变量 OA_ENC_KEY 或 {key_file})")
result = subprocess.run(
["openssl", "aes-256-cbc", "-d", "-a", "-pbkdf2", "-pass", f"pass:{key}", "-in", enc_path],
capture_output=True,
timeout=10,66/66 vendors flagged this skill as clean.
Detected: suspicious.dynamic_code_execution