Skip to content

Commit

Permalink
ELF: Detect OS from Go binaries (mandiant#1987)
Browse files Browse the repository at this point in the history
* elf: read segment memory size

* elf: add routine to read mapped memory

* elf: better detect OS for binaries compiled by Go

* elf: guess OS from Go source filenames

* changelog

* elf: mypy

* merge

* elf: add OS detection based on vDSO strings

* elf: document VTGrep searches

* elf: describe further technique to identify Go binaries

* elf: search for `.go.buildinfo` section via @yelhamer

* black

* elf: detect Alpine Linux ident

* elf: log interest symtab entries

* tests: add test for OS detection by Go buildinfo

* loader: handle missing viv modules

* pre-commit: run deptry before tests (which are slow)

* loader: describe removing viv symbolic switch solver

* pyproject: add PyGithub for deptry

* black
  • Loading branch information
williballenthin authored and ygasparis committed Jun 18, 2024
1 parent 6e59c6e commit c6d976e
Show file tree
Hide file tree
Showing 7 changed files with 581 additions and 19 deletions.
19 changes: 10 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,16 @@ repos:
always_run: true
pass_filenames: false

- repo: local
hooks:
- id: deptry
name: deptry
stages: [push, manual]
language: system
entry: deptry .
always_run: true
pass_filenames: false

- repo: local
hooks:
- id: pytest-fast
Expand All @@ -128,12 +138,3 @@ repos:
always_run: true
pass_filenames: false

- repo: local
hooks:
- id: deptry
name: deptry
stages: [push, manual]
language: system
entry: deptry .
always_run: true
pass_filenames: false
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- Emit "dotnet" as format to ResultDocument when processing .NET files #2024 @samadpls

### New Features
- ELF: detect OS from statically-linked Go binaries #1978 @williballenthin

- add function in capa/helpers to load plain and compressed JSON reports #1883 @Rohit1123
- document Antivirus warnings and VirusTotal false positive detections #2028 @RionEV @mr-tz
Expand Down
Loading

0 comments on commit c6d976e

Please sign in to comment.