diff --git a/checks/raw/binary_artifact.go b/checks/raw/binary_artifact.go index 3f7da96e..e0b17a76 100644 --- a/checks/raw/binary_artifact.go +++ b/checks/raw/binary_artifact.go @@ -65,6 +65,7 @@ var checkBinaryFileContent fileparser.DoWhileTrueOnFileContent = func(path strin "elf": true, "o": true, "so": true, + "macho": true, "iso": true, "class": true, "jar": true, diff --git a/checks/raw/binary_artifact_test.go b/checks/raw/binary_artifact_test.go index 1df61c44..5cd4b318 100644 --- a/checks/raw/binary_artifact_test.go +++ b/checks/raw/binary_artifact_test.go @@ -41,6 +41,14 @@ func TestBinaryArtifacts(t *testing.T) { }, expect: 1, }, + { + name: "Mach-O ARM64 executable", + err: nil, + files: []string{ + "../testdata/binaryartifacts/executables/darwin-arm64-bt", + }, + expect: 1, + }, { name: "non binary file", err: nil, diff --git a/checks/testdata/binaryartifacts/executables/darwin-arm64-bt b/checks/testdata/binaryartifacts/executables/darwin-arm64-bt new file mode 100644 index 00000000..59f49ee2 Binary files /dev/null and b/checks/testdata/binaryartifacts/executables/darwin-arm64-bt differ