{"id":13845553,"url":"https://github.com/strozfriedberg/cobaltstrike-config-extractor","last_synced_at":"2026-01-23T17:49:15.676Z","repository":{"id":43909606,"uuid":"399188787","full_name":"strozfriedberg/cobaltstrike-config-extractor","owner":"strozfriedberg","description":"Cobalt Strike Beacon configuration extractor and parser.","archived":false,"fork":false,"pushed_at":"2025-10-30T17:36:22.000Z","size":5994,"stargazers_count":157,"open_issues_count":4,"forks_count":13,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-11-27T14:11:53.231Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/strozfriedberg.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-23T17:17:36.000Z","updated_at":"2025-10-30T17:36:28.000Z","dependencies_parsed_at":"2022-08-24T19:41:38.924Z","dependency_job_id":null,"html_url":"https://github.com/strozfriedberg/cobaltstrike-config-extractor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/strozfriedberg/cobaltstrike-config-extractor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strozfriedberg%2Fcobaltstrike-config-extractor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strozfriedberg%2Fcobaltstrike-config-extractor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strozfriedberg%2Fcobaltstrike-config-extractor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strozfriedberg%2Fcobaltstrike-config-extractor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/strozfriedberg","download_url":"https://codeload.github.com/strozfriedberg/cobaltstrike-config-extractor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strozfriedberg%2Fcobaltstrike-config-extractor/sbom","scorecard":{"id":855694,"data":{"date":"2025-08-11","repo":{"name":"github.com/strozfriedberg/cobaltstrike-config-extractor","commit":"a2c5ed16d0b6bcbf8967f1c4caa7797acb245d1c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/6 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":0,"reason":"20 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2024-48 / GHSA-fj7x-q9j7-g6q6","Warn: Project is vulnerable to: PYSEC-2022-42986 / GHSA-43fp-rhv2-5gv8","Warn: Project is vulnerable to: PYSEC-2023-135 / GHSA-xqr8-7jwr-rhp7","Warn: Project is vulnerable to: PYSEC-2022-42991 / GHSA-v3c5-jqr6-7qm8","Warn: Project is vulnerable to: PYSEC-2024-60 / GHSA-jjg7-2v4v-x38h","Warn: Project is vulnerable to: GHSA-cpwx-vrp4-4pq7","Warn: Project is vulnerable to: GHSA-h5c8-rqwp-cp95","Warn: Project is vulnerable to: GHSA-h75v-3vvj-5mfj","Warn: Project is vulnerable to: GHSA-q2x7-8rv6-6q7h","Warn: Project is vulnerable to: PYSEC-2022-42969","Warn: Project is vulnerable to: PYSEC-2023-117 / GHSA-mrwq-x4v8-fh7p","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2023-74 / GHSA-j8r2-6x86-q33q","Warn: Project is vulnerable to: GHSA-34jh-p97f-mpxf","Warn: Project is vulnerable to: PYSEC-2023-212 / GHSA-g4mx-q9vg-27p4","Warn: Project is vulnerable to: GHSA-pq67-6m6q-mj2v","Warn: Project is vulnerable to: PYSEC-2021-108 / GHSA-q2q7-5pp4-w6pg","Warn: Project is vulnerable to: PYSEC-2023-192 / GHSA-v845-jxx5-vc9f","Warn: Project is vulnerable to: GHSA-jfmj-5v4g-7637"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T23:51:12.387Z","repository_id":43909606,"created_at":"2025-08-23T23:51:12.387Z","updated_at":"2025-08-23T23:51:12.387Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28697294,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T17:25:48.045Z","status":"ssl_error","status_checked_at":"2026-01-23T17:25:47.153Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2024-08-04T17:03:28.225Z","updated_at":"2026-01-23T17:49:15.633Z","avatar_url":"https://github.com/strozfriedberg.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"#################################################\nCobalt Strike Configuration Extractor and Parser\n#################################################\n\nOverview\n=========\n\nPure Python library and set of scripts to extract and parse configurations (configs) from `Cobalt Strike Beacons \u003chttps://www.cobaltstrike.com/help-beacon\u003e`_.\nThe library, ``libcsce``, contains classes for building tools to work with Beacon configs.\nThere are also two CLI scripts included that use the library to parse Beacon config data:\n\n1. ``csce``: Parses all known Beacon config settings to JSON,\n   mimicing the `Malleable C2 profile \u003chttps://cobaltstrike.com/help-malleable-c2\u003e`_ structure.\n2. ``list-cs-settings``: Attempts to find by brute-force the associated Cobalt Strike version, and all settings/their types, of a Beacon config.\n   This script is useful for conducting research on Beacon samples.\n\nInstallation\n=============\n\nInstall from Pypi (preferred method)\n-------------------------------------\n\n.. code-block:: bash\n\n   \u003e pip install libcsce\n\nInstall from GitHub with Pip\n-----------------------------\n\n.. code-block:: bash\n\n    \u003e pip install git+ssh://git@github.com/strozfriedberg/cobaltstrike-config-extractor.git#egg=libcsce\n\nInstall from Cloned Repo\n-------------------------\n\n.. code-block:: bash\n\n    \u003e git clone ssh://git@github.com/strozfriedberg/cobaltstrike-config-extractor.git\n    \u003e cd libcsce\n    \u003e pip install .\n\nDependencies\n=============\n\nThe only external non-development dependency is `pefile \u003chttps://github.com/erocarrera/pefile\u003e`_,\nwhich is required to decrypt Beacon configs from the ``.data`` section of PE files.\nRequires **Python 3.6+**.\n\nDevelopment dependencies include those specified in ``pyproject.toml`` as well as:\n\n- `Poetry \u003chttps://python-poetry.org/docs/\u003e`_\n- `Make \u003chttps://www.gnu.org/software/make/\u003e`_\n\nGetting Started\n================\n\ncsce\n-----\n\nBoth of the CLI scripts support extracting Beacon configs from PE files (DLLs/EXEs) and memory dumps where a Beacon was running.\nTo parse a Beacon PE file to JSON, use ``csce``:\n\n.. code-block:: bash\n\n    \u003e csce --pretty \u003cpath/to/file.{exe,dll,bin,dmp}\u003e\n\nBy default, the script will try to parse the Beacon as version ``3`` and, if that fails, try version ``4``.\nYou can specify a version manually via the ``-v`` flag to save cycles if you know the Beacon is version ``4``\n(using ``-v 3`` doesn't technically save cycles because the script tries that version first by default).\n\nlist-cs-settings\n-----------------\n\nTo discover new settings and while conducting research, sometimes it's useful to extract all possible settings and their types from a Beacon sample.\nUse ``list-cs-settings`` to detect by brute-force the Cobalt Strike version and all settings/types:\n\n.. code-block:: bash\n\n    \u003e list-cs-settings \u003cpath/to/file.{exe,dll,bin,dmp}\u003e\n\nThis script produces JSON where the top-level key is the Cobalt Strike version number,\nwhich points to a mapping from setting number to information about that setting, including:\n\n1. length (in bytes)\n2. offset from the beginning of the config section\n3. fundamental type (short, int, str)\n\nContributing\n==============\n\nStroz Friedberg wants to work with the security community to make these open source tools the most comprehensive\navailable for working with Cobalt Strike Beacons. If you encounter a bug, have research to share on Beacons,\nspot a typo in the documentation, want to request new functionality, etc. please submit an issue! If you want to contribute code\nor documentation to the project, please submit a PR and we will review it!\nNote that all contributions will be subject to the `Apache-2.0 license \u003cLICENSE\u003e`_ included in the repo.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrozfriedberg%2Fcobaltstrike-config-extractor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstrozfriedberg%2Fcobaltstrike-config-extractor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrozfriedberg%2Fcobaltstrike-config-extractor/lists"}