Skip to content

Password-protected and signed drawings #122

Open

Description

@DrunkOnJava

Spec: ODA Open Design Specification for .dwg files v5.4.1, §19 AcDb:Security (p. 98), §5.5.

Scope

Read the security section; with the password supplied, decrypt and read a protected drawing; without it, refuse with a precise error. Read AcDb:Signature.

State on main (2026-10-21)

Password-protected R2007 files are refused; the Security and Signature sections are named only.

Acceptance

  • A protected corpus file read with its password
  • Refusal without it, never a partial decode
  • Signature section exposed

Parent: #118

Activity

  1. added
    type:spec
    area:container
    area:metadata
    release:R2004
    release:R2007
    priority:P2
    on Oct 21, 2026
  2. DrunkOnJava commented on Oct 27, 2026

    @DrunkOnJava
    OwnerAuthor

    Status on one point (main 2bab7b2): the refusal is now typed for the R2004 family too. #315 makes the legacy reader return Error::SectionEncrypted { name } for a section whose §4.5 encryption flag is 1, instead of decompressing the ciphertext and returning it as the section; a flag of 2 (properties only, as in AcDb:FileDepList and AcDb:AppInfo of real files) is still read. The R2007 refusal returns the same variant, and the streaming R2004SectionWalker refused it already. No pinned drawing sets the flag, so the corpus counts did not move; tools/streaming/verify_sections.py repackages four real drawings' sections with one flagged, and both readers refuse that one and read the control.

    Unchanged: no protected drawing is read with its password (the corpus holds none), and AcDb:Security and AcDb:Signature are still named only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:containerarea:metadatapriority:P2release:R2004release:R2007type:spec

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions