Playing with Python Pickle #2
ID: a926573c-cf30-5f47-b82d-f53b41e61b20
STIX ID: report--a926573c-cf30-5f47-b82d-f53b41e61b20
Feed Name: SensePost Blog
Threat Score
This post demonstrates practical exploitation of Python's pickle deserialization to execute arbitrary system commands and read files on hosts that unpickle attacker-controlled data. It walks through opcode-level pickle payloads and techniques (os.system, subprocess.check_output, and __builtin__.apply/getattr) showing how to retrieve command output and file contents (e.g., /etc/passwd) and warns that Python's pickle performs no security checks, making untrusted unpickling dangerous.
Your team is not currently subscribed to this feed. You must subscribe to it in order to see this post.
