{"id":43877170,"url":"https://github.com/fireeye/pywintrace","last_synced_at":"2026-02-06T14:45:57.348Z","repository":{"id":57458536,"uuid":"102869990","full_name":"fireeye/pywintrace","owner":"fireeye","description":"ETW Python Library","archived":false,"fork":false,"pushed_at":"2023-08-11T01:39:00.000Z","size":206,"stargazers_count":290,"open_issues_count":14,"forks_count":59,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-09-29T09:00:52.105Z","etag":null,"topics":["etw","windows"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fireeye.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2017-09-08T14:27:01.000Z","updated_at":"2025-09-10T05:59:49.000Z","dependencies_parsed_at":"2024-06-18T22:57:45.869Z","dependency_job_id":null,"html_url":"https://github.com/fireeye/pywintrace","commit_stats":{"total_commits":47,"total_committers":2,"mean_commits":23.5,"dds":0.276595744680851,"last_synced_commit":"dd6a75d5a6588eb0a8bf65dd77cb53b10845eb40"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/fireeye/pywintrace","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fireeye%2Fpywintrace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fireeye%2Fpywintrace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fireeye%2Fpywintrace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fireeye%2Fpywintrace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fireeye","download_url":"https://codeload.github.com/fireeye/pywintrace/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fireeye%2Fpywintrace/sbom","scorecard":{"id":400766,"data":{"date":"2025-08-11","repo":{"name":"github.com/fireeye/pywintrace","commit":"977eeb85d08982c160d9594f5f875f54db7a3415"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"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":"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":"Code-Review","score":5,"reason":"Found 6/12 approved changesets -- score normalized to 5","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":"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":"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":"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":"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":"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":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE.txt:0"],"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":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.3.0 not signed: https://api.github.com/repos/fireeye/pywintrace/releases/96697650","Warn: release artifact v0.2.0 not signed: https://api.github.com/repos/fireeye/pywintrace/releases/16187954","Warn: release artifact v0.1.1 not signed: https://api.github.com/repos/fireeye/pywintrace/releases/10091003","Warn: release artifact v0.1.0 not signed: https://api.github.com/repos/fireeye/pywintrace/releases/9333198","Warn: release artifact v0.0.1 not signed: https://api.github.com/repos/fireeye/pywintrace/releases/8562683","Warn: release artifact v0.3.0 does not have provenance: https://api.github.com/repos/fireeye/pywintrace/releases/96697650","Warn: release artifact v0.2.0 does not have provenance: https://api.github.com/repos/fireeye/pywintrace/releases/16187954","Warn: release artifact v0.1.1 does not have provenance: https://api.github.com/repos/fireeye/pywintrace/releases/10091003","Warn: release artifact v0.1.0 does not have provenance: https://api.github.com/repos/fireeye/pywintrace/releases/9333198","Warn: release artifact v0.0.1 does not have provenance: https://api.github.com/repos/fireeye/pywintrace/releases/8562683"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 27 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T20:02:07.309Z","repository_id":57458536,"created_at":"2025-08-18T20:02:07.309Z","updated_at":"2025-08-18T20:02:07.309Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29165101,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T14:37:12.680Z","status":"ssl_error","status_checked_at":"2026-02-06T14:36:22.973Z","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":["etw","windows"],"created_at":"2026-02-06T14:45:57.278Z","updated_at":"2026-02-06T14:45:57.338Z","avatar_url":"https://github.com/fireeye.png","language":"Python","readme":"# ETW (Event Tracing for Windows)\nETW is a tracing facility that allows a user to log events to a file or buffer. An overview of ETW can be found [here](https://msdn.microsoft.com/en-us/library/windows/desktop/aa363668(v=vs.85).aspx). The basic architecture includes an Provider, Controller, and a Consumer. The controller defines and controls a capture session. This includes what providers are in the as well as starting and stopping the session. The provider, specified using a GUID (Globally Unique Identifier), logs events to a series of buffers. The Consumer receives messages either from a buffer or a file and processes them in chronological order.\n\nThis module is an entirely Python-based ctypes wrapper around the Win32 APIs necessary for for controlling ETW sessions and processing message data. The module is very flexible and can set pre or post capture filters. \n\n## Usage\n\nTo use this module import `etw` and create an instance of the ETW class by passing in a list of ProviderInfo instances for the provider(s) you wish to capture data from. To process data returned from ETW you will need to specify a callback.\n\n\u003cpre\u003e\n\u003ccode\u003e\nimport etw\n\n\ndef some_func():\n    # define capture provider info\n    providers = [etw.ProviderInfo('Some Provider', etw.GUID(\"{11111111-1111-1111-1111-111111111111}\"))]\n\n    # create instance of ETW and start capture\n    with etw.ETW(providers=providers, event_callback=etw.on_event_callback):\n        # run capture\n        etw.run('etw')\n\u003c/code\u003e\n\u003c/pre\u003e\n\n\nBelow is an example using the module to perform a capture using a custom callback.\n\n\u003cpre\u003e\n\u003ccode\u003e\nimport time\nimport etw\n\n\ndef some_func():\n    # define capture provider info\n    providers = [etw.ProviderInfo('Some Provider', etw.GUID(\"{11111111-1111-1111-1111-111111111111}\"))]\n    # create instance of ETW class\n    job = etw.ETW(providers=providers, event_callback=lambda x: print(x))\n    # start capture\n    job.start()\n\n    # wait some time\n    time.sleep(5)\n\n    # stop capture\n    job.stop()\n\u003c/code\u003e\n\u003c/pre\u003e\n\nSubclassing is another handy way to define ETW capture classes.\n\n\u003cpre\u003e\n\u003ccode\u003e\nimport time\nimport etw\n\n\nclass MyETW(etw.ETW):\n\n    def __init__(self, event_callback):\n        # define capture provider info\n        providers = [etw.ProviderInfo('Some Provider', etw.GUID(\"{11111111-1111-1111-1111-111111111111}\"))]\n        super().__init__(providers=providers, event_callback=event_callback)\n\n    def start(self):\n        # do pre-capture setup\n        self.do_capture_setup()\n        super().start()\n\n    def stop(self):\n        super().stop()\n        # do post-capture teardown\n        self.do_capture_teardown()\n\n    def do_capture_setup(self):\n        # do whatever setup for capture here\n        pass\n\n    def do_capture_teardown(self):\n        # do whatever for capture teardown here\n        pass\n\n\ndef my_capture():\n    # instantiate class\n    capture = MyETW(lambda x: print(x))\n    # start capture\n    capture.start()\n    # wait some time to capture data\n    time.sleep(5)\n    # stop capture\n    capture.stop()\n\u003c/code\u003e\n\u003c/pre\u003e\n\nFor more examples see [examples](examples).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffireeye%2Fpywintrace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffireeye%2Fpywintrace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffireeye%2Fpywintrace/lists"}