Playing with Python Pickle #3
ID: 157b3fcc-5989-58c7-b9cf-cfe9aa933b50
STIX ID: report--157b3fcc-5989-58c7-b9cf-cfe9aa933b50
Feed Name: SensePost Blog
This post demonstrates how to construct malicious Python Pickle streams that execute arbitrary Python code during deserialization: it shows patterns using eval(compile(...)), manipulating globals to capture output, and using builtin calls (getattr, dict.get, apply) to return a single string result, with a step-by-step trace of the Pickle VM execution. The write-up focuses on techniques for turning dynamic Python execution into a Pickle payload that can perform remote command execution and retrieve command output, useful for attackers exploiting insecure Pickle processing.
Your team is not currently subscribed to this feed. You must subscribe to it in order to see this post.
