VS Code Extensions
I

Insecure Deserialization Detector

by NoonDevelopers49

Detects insecure deserialization, code injection, and command injection vulnerabilities in Python code (CWE-502, CWE-95, CWE-78) using AST analysis.

Downloads

6

Rating

5.0 / 5 (1)

Version

2.0.0

Last updated

May 30, 2026

Detects insecure deserialization vulnerabilities in Python code using AST analysis.

What It Detects

  • pickle.loads() / pickle.load() — CWE-502 HIGH
  • marshal.loads() — CWE-502 HIGH
  • yaml.load() — CWE-502 MEDIUM (use yaml.safe_load instead)
  • jsonpickle.decode() — CWE-502 HIGH
  • dill.loads() — CWE-502 HIGH
  • eval() / exec() — CWE-95 HIGH
  • Import aliases: import pickle as pk → pk.loads() still caught
  • From-imports: from pickle import loads → loads() still caught

Requirements

  • Python 3.7+ must be installed
  • Set insecureDeserializationDetector.pythonPath in settings if Python is not on PATH

Usage

  • Open any .py file — scanning happens automatically on open and save
  • Right-click in editor → Scan for Insecure Deserialization
  • Command Palette → Security: Scan Workspace for Insecure Deserialization

Settings

Setting Default Description
pythonPath python Path to Python interpreter
scanOnSave true Scan on file save
scanOnOpen true Scan on file open

Related extensions