From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "identification" |
|---|
| subject | "Format:PE (Portable Executable)" |
|---|
| claim | "Authenticode signatures are recognised by OIDs inside the PKCS#7: 1.3.6.1.4.1.311.2.1.4 (SPC_INDIRECT_DATA_CONTENT), .2.1.15 (SPC_PE_IMAGE_DATA), .2.1.12 (SPC_SP_OPUS_INFO), .2.1.11 (SPC_STATEMENT_TYPE), .2.4.1 (SPC_NESTED_SIGNATURES), .3.3.1 (osslsigncode SPC_RFC3161_OBJID, an RFC 3161 timestamp countersignature; LIEF names it MS_COUNTER_SIGN). Classic Authenticode timestamps use 1.3.6.1.4.1.311.3.2.1 (SPC_TIME_STAMP_REQUEST, LIEF TIMESTAMP_REQUEST) and the PKCS#9 counterSignature 1.2.840.113549.1.9.6. For page hashes osslsigncode defines .2.3.1 (SHA-1) and .2.3.2 (SHA-256) with class id A6B586D5B4A12466AE05A217DA8E60D6." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:PE (Portable Executable)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | method | "DER object identifiers in the certificate-table PKCS#7 blob" |
|---|
| indicator | "1.3.6.1.4.1.311.2.1.4 SPC_INDIRECT_DATA_CONTENT; 1.3.6.1.4.1.311.2.1.15 SPC_PE_IMAGE_DATA; 1.3.6.1.4.1.311.2.1.12 SPC_SP_OPUS_INFO; 1.3.6.1.4.1.311.2.1.11 SPC_STATEMENT_TYPE; 1.3.6.1.4.1.311.2.4.1 SPC_NESTED_SIGNATURES; 1.3.6.1.4.1.311.3.3.1 MS_COUNTER_SIGN; 1.2.840.113549.1.9.16.2.14 TIME_STAMP_TOKEN; 1.3.6.1.4.1.311.2.3.1 / .2.3.2 page hashes V1 SHA-1 / V2 SHA-256; page-hash class id bytes a6 b5 86 d5 b4 a1 24 66 ae 05 a2 17 da 8e 60 d6" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "OID name table" |
|---|
| repo | "https://github.com/lief-project/LIEF" |
|---|
| commit | "15777f106f6220046cf26ee99940d1f56751325e" |
|---|
| path | "src/PE/signature/OIDToString.cpp" |
|---|
| lines | "606, 694, 981-986, 1002, 2247" |
|---|
|
| type | "source" |
|---|
| detail | "SPC_PE_IMAGE_PAGE_HASHES_V1/V2 defines and classid_page_hash bytes" |
|---|
| repo | "https://github.com/mtrojnar/osslsigncode" |
|---|
| commit | "868d6e95c603a8057e89336f12fe12b5d2258e00" |
|---|
| path | "osslsigncode.h" |
|---|
| lines | "179-186" |
|---|
|
| type | "source" |
|---|
| detail | "classid_page_hash array" |
|---|
| repo | "https://github.com/mtrojnar/osslsigncode" |
|---|
| commit | "868d6e95c603a8057e89336f12fe12b5d2258e00" |
|---|
| path | "pe.c" |
|---|
| lines | "14-17" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Authenticode OIDs" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T08:09:43.164Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:46:15.121Z" |
|---|
| result | "confirmed" |
|---|
| method | "Fetched LIEF OIDToString.cpp at 15777f1 (lines 619, 694, 981-986, 1002-1003, 2247: names and OIDs match, including MS_COUNTER_SIGN for 3.3.1 and TIMESTAMP_REQUEST for 3.2.1) and osslsigncode osslsigncode.h at 868d6e9 (lines 179-190: SPC_* defines, page hashes V1 SHA1 / V2 SHA256, SPC_RFC3161_OBJID) and pe.c 14-17 (classid_page_hash a6 b5 86 d5 b4 a1 24 66 ae 05 a2 17 da 8e 60 d6). All match." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T10:07:52.158Z" |
|---|
| summary | "1.3.6.1.4.1.311.3.3.1 is osslsigncode's SPC_RFC3161_OBJID (RFC 3161 timestamp countersignature), LIEF labels it MS_COUNTER_SIGN; the classic timestamp OIDs are 1.3.6.1.4.1.311.3.2.1 and PKCS#9…" |
|---|
| changed | |
|---|
|
|
|---|