Skip to content

Commit

Permalink
artif: new eBPF artifacts
Browse files Browse the repository at this point in the history
Added new artifacts to list, show, and dump pinned eBPF programs.
  • Loading branch information
mnrkbys committed Aug 5, 2024
1 parent 87ae5c2 commit 8ca75f9
Showing 1 changed file with 37 additions and 2 deletions.
39 changes: 37 additions & 2 deletions artifacts/live_response/system/ebpf.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 2.0
version: 2.1
output_directory: /live_response/system
artifacts:
-
Expand All @@ -7,6 +7,41 @@ artifacts:
collector: command
command: ls -la /sys/fs/bpf
output_file: ls_-la_sys_fs_bpf.txt

# References:
# https://www.defensive-security.com/storage/uploads/Advanced%20Linux%20Detection%20and%20Forensics%20Cheatsheet%20by%20Defensive%20Security.pdf

-
description: List loaded eBPF progs.
supported_os: [linux]
condition: command_exists "bpftool"
collector: command
command: bpftool prog list
output_file: bpftool_prog_list.txt
-
description: Show information of pinned eBPF progs.
supported_os: [linux]
condition: command_exists "bpftool"
collector: command
foreach: ls -A /sys/fs/bpf | cut -c1-8
command: bpftool prog show name "%line%"
output_directory: /live_response/system/ebpf/%line%
output_file: show.txt
-
description: Dump xlated eBPF progs.
supported_os: [linux]
condition: command_exists "bpftool"
collector: command
foreach: ls -A /sys/fs/bpf | cut -c1-8
command: bpftool prog dump xlated name "%line%"
output_directory: /live_response/system/ebpf/%line%
output_file: xlated.txt
-
description: Dump jited eBPF progs.
supported_os: [linux]
condition: command_exists "bpftool"
collector: command
foreach: ls -A /sys/fs/bpf | cut -c1-8
command: bpftool prog dump jited name "%line%"
output_directory: /live_response/system/ebpf/%line%
output_file: jited.txt

0 comments on commit 8ca75f9

Please sign in to comment.