{"id":24230463,"url":"https://github.com/crowdsecurity/pysigma-backend-crowdsec","last_synced_at":"2025-07-29T03:06:27.321Z","repository":{"id":182780108,"uuid":"669054376","full_name":"crowdsecurity/pySigma-backend-crowdsec","owner":"crowdsecurity","description":"pysigma backend for crowdsec","archived":false,"fork":false,"pushed_at":"2024-12-30T09:16:01.000Z","size":72,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-18T11:59:06.247Z","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":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crowdsecurity.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-21T08:29:56.000Z","updated_at":"2024-12-09T14:00:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"fd94e9aa-b057-484e-92fe-8ed67d02558a","html_url":"https://github.com/crowdsecurity/pySigma-backend-crowdsec","commit_stats":null,"previous_names":["buixor/pysigma-backend-crowdsec","crowdsecurity/pysigma-backend-crowdsec"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/crowdsecurity/pySigma-backend-crowdsec","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crowdsecurity%2FpySigma-backend-crowdsec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crowdsecurity%2FpySigma-backend-crowdsec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crowdsecurity%2FpySigma-backend-crowdsec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crowdsecurity%2FpySigma-backend-crowdsec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crowdsecurity","download_url":"https://codeload.github.com/crowdsecurity/pySigma-backend-crowdsec/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crowdsecurity%2FpySigma-backend-crowdsec/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267621582,"owners_count":24116900,"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-07-29T02:00:12.549Z","response_time":2574,"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-01-14T13:27:29.997Z","updated_at":"2025-07-29T03:06:27.245Z","avatar_url":"https://github.com/crowdsecurity.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![pylint](https://github.com/buixor/pySigma-backend-crowdsec/actions/workflows/pylint.yml/badge.svg)\r\n\r\n![pytest](https://github.com/buixor/pySigma-backend-crowdsec/actions/workflows/pytest.yml/badge.svg)\r\n\r\n# pySigma crowdsec Backend\r\n\r\nThis is a **WIP** (but functional) crowdsec backend+pipeline for [pySigma](https://github.com/SigmaHQ/pySigma/).\r\n\r\n# Testing\r\n\r\nUse `poetry` and install `sigma-cli` to test rules conversion:\r\n\r\n```bash\r\npoetry shell\r\npoetry install\r\npip3 install sigma-cli\r\n```\r\n\r\n# Converting Crowdsec Rules\r\n\r\n\u003e By default, sigma appends everything into the same file. We want individual files with names that match the rule name.\r\n\r\n```bash\r\nfor i in `find ./rules/windows/process_creation/ -type f` ; do echo ${i} ; sigma convert -p crowdsec -t crowdsec  ${i} \u003e ./generated/$(basename ${i}) ; x=$(basename ${i%.*}); sed -i 's@name: sigmahq/.*@name: sigmahq/'${x}'@g' ./generated/$(basename ${i}) ;  done\r\n```\r\n\r\n\r\n\r\n# Example output\r\n\r\n```yaml\r\n#sigma convert -p crowdsec -t crowdsec .../sigma_core/rules/windows/process_creation/proc_creation_win_lolbin_msdt_answer_file.yml\r\ntype: trigger\r\nname: sigmahq/proc_creation_win_lolbin_msdt_answer_file\r\ndescription: |\r\n  Detects execution of \"msdt.exe\" using an answer file which is simulating the legitimate way of calling msdt via \"pcwrun.exe\" (For example from the compatibility tab)\r\nfilter: |\r\n  (evt.Meta.service == 'sysmon' \u0026\u0026 evt.Parsed.EventID == '1') \u0026\u0026 (evt.Parsed.Image endsWith '\\\\msdt.exe' \u0026\u0026 evt.Parsed.CommandLine contains '\\\\WINDOWS\\\\diagnostics\\\\index\\\\PCWDiagnostic.xml' \u0026\u0026 (evt.Parsed.CommandLine contains ' -af ' || evt.Parsed.CommandLine contains ' /af ') \u0026\u0026 not (evt.Parsed.ParentImage endsWith '\\\\pcwrun.exe'))\r\nblackhole: 2m\r\n#status: test\r\nlabels:\r\n  service: windows\r\n  confidence: 1\r\n  spoofable: 0\r\n  classification:\r\n   - attack.t1218\r\n\r\n  label: \"Execute MSDT Via Answer File\"\r\n  behavior : \"windows:audit\"\r\n  remediation: false\r\n\r\nscope:\r\n  type: ParentProcessId\r\n  expression: evt.Parsed.ParentProcessId\r\n```\r\n\r\n# Support Categories\r\n\r\n- [x] WebServer\r\n- [x] Windows / `registry_add`\r\n- [x] Windows / `process_creation`\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrowdsecurity%2Fpysigma-backend-crowdsec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrowdsecurity%2Fpysigma-backend-crowdsec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrowdsecurity%2Fpysigma-backend-crowdsec/lists"}