{"id":27360655,"url":"https://github.com/fhightower/evil-pickle","last_synced_at":"2025-08-12T09:09:30.885Z","repository":{"id":83533983,"uuid":"66320712","full_name":"fhightower/evil-pickle","owner":"fhightower","description":"A demonstration of how a pickle can be exploited in Python. \"How camest thou in this pickle?\"","archived":false,"fork":false,"pushed_at":"2016-12-30T23:29:21.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-20T01:59:05.694Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fhightower.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-08-23T01:16:43.000Z","updated_at":"2022-11-21T16:38:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"c998e826-13ee-4ee9-9f7c-77dee52449ef","html_url":"https://github.com/fhightower/evil-pickle","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fhightower/evil-pickle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fhightower%2Fevil-pickle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fhightower%2Fevil-pickle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fhightower%2Fevil-pickle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fhightower%2Fevil-pickle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fhightower","download_url":"https://codeload.github.com/fhightower/evil-pickle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fhightower%2Fevil-pickle/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270033144,"owners_count":24515433,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-13T01:09:43.925Z","updated_at":"2025-08-12T09:09:30.862Z","avatar_url":"https://github.com/fhightower.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Evil Pickle\n\nThis repository demonstrates how the Python [pickle](https://docs.python.org/3.5/library/pickle.html) module can be exploited.\n\n**TL;DR:** \n\n\"Never unpickle data received from an untrusted or unauthenticated source.\"\n\n~ [Python's pickle module documentation](https://docs.python.org/3.5/library/pickle.html)\n\n## Usage\n1. Write exploited pickle\n\n    ```python\n    # create an exploited pickle that will run the 'ls' command when the pickle is read\n    python3 evil_pickle_writer.py\n    ```\n\n2. Read exploited pickle\n\n    ```python\n    # read the exploited pickle... notice that it will run the 'ls' command when reading the pickle\n    python3 evil_pickle_reader.py\n    ```\n\n## Resources\n- [https://blog.nelhage.com/2011/03/exploiting-pickle/](https://blog.nelhage.com/2011/03/exploiting-pickle/) - This blog was very helpful in explaining how a pickle can be exploited in Python.  The code in this repository was inspired by this article.\n- [https://media.blackhat.com/bh-us-11/Slaviero/BH_US_11_Slaviero_Sour_Pickles_WP.pdf](https://media.blackhat.com/bh-us-11/Slaviero/BH_US_11_Slaviero_Sour_Pickles_WP.pdf) - This is a good discussion related to the expoloitation of the pickle framework.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffhightower%2Fevil-pickle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffhightower%2Fevil-pickle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffhightower%2Fevil-pickle/lists"}