{"id":22748008,"url":"https://github.com/githubfoam/win-githubactions","last_synced_at":"2025-03-30T05:42:29.571Z","repository":{"id":113756814,"uuid":"386675000","full_name":"githubfoam/win-githubactions","owner":"githubfoam","description":"windows data center osquery","archived":false,"fork":false,"pushed_at":"2022-05-17T08:49:10.000Z","size":38,"stargazers_count":0,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-05T07:49:40.189Z","etag":null,"topics":["dfir","osquery","windows2016","windows2019","windows2022"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/githubfoam.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":"2021-07-16T15:00:59.000Z","updated_at":"2022-05-17T08:41:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"1a940366-9b1a-4540-93fe-44aaa181af59","html_url":"https://github.com/githubfoam/win-githubactions","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubfoam%2Fwin-githubactions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubfoam%2Fwin-githubactions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubfoam%2Fwin-githubactions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubfoam%2Fwin-githubactions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/githubfoam","download_url":"https://codeload.github.com/githubfoam/win-githubactions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246281216,"owners_count":20752207,"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","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":["dfir","osquery","windows2016","windows2019","windows2022"],"created_at":"2024-12-11T03:19:02.310Z","updated_at":"2025-03-30T05:42:29.554Z","avatar_url":"https://github.com/githubfoam.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# win-githubactions\n\n[![latest osquery CI workflow](https://github.com/githubfoam/win-githubactions/actions/workflows/latest-osquery-wf.yml/badge.svg)](https://github.com/githubfoam/win-githubactions/actions/workflows/latest-osquery-wf.yml)  \n\n[![2022 osquery CI workflow](https://github.com/githubfoam/win-githubactions/actions/workflows/2022-osquery-wf.yml/badge.svg)](https://github.com/githubfoam/win-githubactions/actions/workflows/2022-osquery-wf.yml)  \n[![2019 osquery CI workflow](https://github.com/githubfoam/win-githubactions/actions/workflows/2019-osquery-wf.yml/badge.svg)](https://github.com/githubfoam/win-githubactions/actions/workflows/2019-osquery-wf.yml)  \n[![2016 osquery CI workflow](https://github.com/githubfoam/win-githubactions/actions/workflows/2016-osquery-wf.yml/badge.svg)](https://github.com/githubfoam/win-githubactions/actions/workflows/2016-osquery-wf.yml)  \n\n~~~~\nCheck the processes that have a deleted executable\nSELECT * FROM processes WHERE on_disk = 0;\n\nGet the process name, port, and PID, for processes listening on all interfaces:\nSELECT DISTINCT processes.name, listening_ports.port, processes.pid\n  FROM listening_ports JOIN processes USING (pid)\n  WHERE listening_ports.address = '0.0.0.0';\n\nFind every macOS LaunchDaemon that launches an executable and keeps it running:\nSELECT name, program || program_arguments AS executable\n  FROM launchd\n  WHERE (run_at_load = 1 AND keep_alive = 1)\n  AND (program != '' OR program_arguments != '');\n\nCheck for ARP anomalies from the host's perspective:    \nSELECT address, mac, COUNT(mac) AS mac_count\n  FROM arp_cache GROUP BY mac\n  HAVING count(mac) \u003e 1;\n\nAlternatively, Check for ARP anomalies from the host's perspective:\n  SELECT address, mac, mac_count\n    FROM\n      (SELECT address, mac, COUNT(mac) AS mac_count FROM arp_cache GROUP BY mac)\n    WHERE mac_count \u003e 1;\n\n    osquery\u003e .all firefox_addons;\n    osquery\u003e .all  chrome_extensions;\n\n~~~~\n~~~~\nmacos_osquery \nhttps://gist.github.com/githubfoam/6753b5efad8e5ab8fa2ca29ce7b29988\nwindows_osquery \nhttps://gist.github.com/githubfoam/afeb4fbbee731c427d645382e59b7948\nlinux_osquery \nhttps://gist.github.com/githubfoam/0babb95da5845b8d4ee41f5711de637a\n~~~~\n\n~~~~\npredefined tables\n\u003chttps://osquery.io/schema/4.1.1\u003e\n\n# https://osquery.readthedocs.io/en/stable/installation/install-linux/\n\nhttps://github.com/google/santa\nhttps://github.com/groob/moroz\nhttps://github.com/zentralopensource/zentral\n\nhttps://github.com/actions/virtual-environments\n\n~~~~","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithubfoam%2Fwin-githubactions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithubfoam%2Fwin-githubactions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithubfoam%2Fwin-githubactions/lists"}