Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Check the Authenticode certificate for extended validation for any downloaded coder binaries. #45

Closed
@spikecurtis

Description

@spikecurtis

We currently check the Subject name on the certificate matches "Coder Technologies Inc.", but we went thru a lot to get an extended validation certificate, so we should have Coder Desktop also check that the Authenticode certificate is an extended validation cert. This will make it much harder for an malicious actor to successfully sign binaries and have them executed by Coder Desktop.

$sig=Get-AuthenticodeSignature-FilePath"C:\Program Files\Coder\bin\coder.exe"foreach ($extin$sig.SignerCertificate.Extensions) {$ext.Oid}

gives:

Value             FriendlyName-----             ------------2.5.29.35         Authority Key Identifier2.5.29.14         Subject Key Identifier2.5.29.32         Certificate Policies2.5.29.15         Key Usage2.5.29.37         Enhanced Key Usage2.5.29.31         CRL Distribution Points1.3.6.1.5.5.7.1.1 Authority Information Access2.5.29.19         Basic Constraints

We are interested in the Certificate Policies extension, OID 2.5.29.32. If we decode that extension, we get

SEQUENCE {SEQUENCE {                  OBJECTIDENTIFIER 2.23.140.1.3SEQUENCE {SEQUENCE {                        OBJECTIDENTIFIER 1.3.6.1.5.5.7.2.1IA5String 'http://www.digicert.com/CPS'                     }                  }               }            }

OID 2.23.140.1.3is for Extended Validation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp