-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (38 loc) · 1.48 KB
/
2016-osquery-wf.yml
File metadata and controls
44 lines (38 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: "2016 osquery CI workflow"
on:
push:
branches: [ main ]
schedule:
# https://crontab.guru/
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows
- cron: '0 0 * * FRI' ##execution of a task in the first minute of the month
jobs:
# The Windows 2016 environment is deprecated
windows-2016-pwsh-osquery:
name: "Microsoft Windows Server 2016 Datacenter pwsh"
runs-on: windows-2016
steps:
- name: Checkout
uses: actions/checkout@v1
- name: "check if server is virtual"
run: Systeminfo | findstr /i model
- name: "check the PROCESSOR_ARCHITECTURE environment variable.64-bit systems will say AMD64 and 32-bit systems should say x86"
run: wmic OS get OSArchitecture
- name: "osfingerprinting"
run: systeminfo | more
- name: "display all processes, executable path"
run: wmic process list full
- name: "list of running services"
run: tasklist
- name: "list of all processes along with their corresponding PID, and services that are tied to them"
run: tasklist /svc
- name: "look for unusual services"
run: net start
- name: "query unusual services"
run: sc query
- name: "Install osquery - powershell script"
run: .\scripts\Install_Osquery.ps1
shell: pwsh
- name: "DFIR osquery - powershell script"
run: .\scripts\DFIR_Osquery.ps1
shell: pwsh