Global site search

Search guides, labs, glossary, and research

Type two or more characters to search.

Start with a channel, artifact, or defense term

Examples include zero-width, metadata, tokenizer, or prompt injection.

    PDF · OOXML · PNG · JPEG

    Document Container Forensics

    Inspect files as layered containers with signatures, indexes, relationships, metadata, embedded objects, revisions, chunks, markers, and parser-dependent behavior.

    Quick answer

    What does this Machine Tradecraft expansion explain?

    Document forensics begins by treating a PDF, Office file, PNG, or JPEG as a structured container rather than trusting its extension or rendered appearance; structural inspection, validation, cryptographic verification, rendering, and sanitization are separate operations.

    Identify
    Compare extension, declared media type, magic bytes, and internal structure.
    Inspect
    Map offsets, indexes, relationships, metadata, active-content indicators, and expansion limits without execution.
    Fail closed
    Reject ambiguity, overlap, encryption, unsafe paths, impossible sizes, and inconsistent redundant records.
    Reviewed implementation boundary

    Know what is measured, approximated, and still external.

    The submitted report remains byte-identical. This separate review, checked 2026-08-26, narrows implementation claims and gives visitors a decision path before they generalize from a local result.

    IMPLEMENTATION MODE Inert bounded container inspection
    VISIBLE SOURCE PROFILE 7 standards/specifications · 0 research · 0 government · 0 implementation
    SOURCE BODY Preserved; corrections live in this review layer
    Directly computed

    Output produced deterministically by the local runtime.

    • Outer byte count, MIME evidence, SHA-256, and allowlisted format signature
    • Bounded PDF, OOXML ZIP, PNG, or JPEG structural indicators already supported by the shared file inspector
    • Selected active-content, metadata, relationship, chunk, marker, and ambiguity findings without execution
    Bounded approximation

    Useful model or subset that must not be mistaken for full conformance.

    • The inspector is not a complete ISO 32000-2, ECMA-376, PNG, JPEG, EXIF, or XMP validator
    • Structural indicators do not predict how every viewer, office suite, or parser will recover malformed content
    • Metadata presence and parser warnings do not establish malicious intent
    Requires external verification

    Conclusion that needs an exact implementation, trust system, model, parser, or human review.

    • Digital-signature validity, certificate status, and trust require dedicated cryptographic verification
    • Rendered appearance and semantic deception require isolated rendering and human review
    • Malware, macros, fonts, embedded objects, and polyglots require specialist sandbox and forensic tooling
    Decision support

    Choose the next evidence step instead of treating one result as a verdict.

    QuestionWhat the local page can answerWhat it does not establishNext evidence step
    What allowlisted container does the file resemble?The lab reports signature and structural evidence.Complete format conformance or application behavior.Validate with independent strict parsers and preserve the original hash.
    Does the container expose selected risky structures?Yes — within the bounded parser coverage.Malware execution, exploitability, or semantic harm.Escalate to isolated rendering and specialist analysis.
    Is a signature trustworthy?No — signature-related structures may be inventoried only.Cryptographic validity, identity, revocation, or policy.Use a dedicated verifier with trust and timestamp policy.
    Focused deterministic fixture

    Governed PDF, DOCX, and PNG metadata fixtures

    Exercises type detection, container mapping, metadata inventory, and no-execution boundaries.

    Expected boundary: Each fixture produces deterministic structural findings and no external effect.

    Open prepared laboratory
    Version and authority checkpoints
    • PDF 2.0 resourcesISO 32000-2:2020 reference material; this runtime performs bounded inspection only
    • ECMA-376Primary OOXML specification family used for package terminology
    • PNG Third EditionW3C Recommendation; not yet an International Standard
    Compare independent views

    One artifact, several machine-readable representations

    No single view is automatically authoritative. Preserve the source, identify each parser or receiver, and compare their outputs before authorizing a consequential decision.

    01Envelope

    Filename, extension, declared media type, magic bytes, and digest.

    02Container map

    ZIP entries, PDF objects and revisions, PNG chunks, or JPEG markers.

    03Metadata

    Info dictionaries, properties, EXIF, XMP, comments, and textual chunks.

    04Relationships

    Internal and external package links, embedded files, and attachments.

    05Active indicators

    Macros, JavaScript, actions, forms, and executable relationships.

    06Canonical export

    A newly constructed representation after approved stripping or flattening.

    Bounded method

    Analysis workflow

    The workflow preserves evidence before transformation and keeps structural inspection separate from execution, remote verification, or model behavior.

    1. Hash and quarantine the original bytes.
    2. Identify the format from signatures and internal structure.
    3. Map bounds, indexes, duplicate records, offsets, compression, and relationships.
    4. Extract metadata and active indicators as inert data.
    5. Render only in a separately isolated environment if required.
    6. Create a new sanitized artifact rather than mutating the evidence copy.
    Defense in depth

    Controls carried into implementation

    These controls are contextual. They reduce a defined risk; they do not guarantee safety, truth, attribution, or resistance to every adaptive attack.

    01

    Require local/central ZIP record agreement and non-overlapping spans.

    02

    Bound total and per-entry expansion before decompression.

    03

    Never follow external OOXML relationships during inspection.

    04

    Parse all PDF revisions and distinguish signature validity from allowed modifications.

    05

    Compare EXIF, XMP, thumbnails, and visible pixels as separate evidence sources.

    Shared vocabulary

    Key terms

    Definitions are linked into the site-wide glossary and back to the full report.

    Container format

    A format that encapsulates multiple data streams, objects, metadata fields, or relationships.

    Media type

    An IANA identifier describing a representation format, distinct from a filename extension.

    Central directory

    The ZIP index near the end of an archive that points to local entries.

    Ancillary chunk

    A non-critical PNG chunk carrying optional metadata or rendering information.

    XMP

    An XML-based metadata framework used across PDF and image formats.

    EXIF

    Camera and image metadata stored in JPEG, TIFF, and other containers.

    Parser differential

    A security-relevant difference between how independent parsers interpret the same bytes.

    Continue with primary material

    External standards and research

    These links are provided for visitors who want the governing specification, paper, framework, or implementation documentation. Links open in a new tab; the site does not fetch them during runtime analysis.

    Primary standard Format specification

    ISO 32000-2 resources

    PDF 2.0 specification and supporting material.

    Normative or first-party specification material.
    pdfa.org
    Primary standard Format specification

    ECMA-376 Office Open XML

    OOXML and Open Packaging Conventions.

    Normative or first-party specification material.
    ecma-international.org
    Primary standard W3C Recommendation

    PNG Third Edition

    PNG signature, chunks, conformance, and security considerations.

    Normative or first-party specification material.
    www.w3.org
    Primary standard Metadata specification

    Adobe XMP specifications

    XMP data model and serialization.

    Normative or first-party specification material.
    developer.adobe.com
    Primary standard Metadata specification

    CIPA standards

    Current EXIF specifications.

    Normative or first-party specification material.
    www.cipa.jp
    Authoritative guidance Registry

    IANA media types

    Authoritative media-type registry.

    First-party guidance, framework, registry, or standards-program material.
    www.iana.org
    Supporting resource Specification archive

    PDF specification archive

    Historical PDF editions and reference material.

    Useful supporting material that does not replace the governing specification or original study.
    pdfa.org
    Continue the investigation

    Read the evidence, then test the bounded model

    The full submitted report is preserved byte-for-byte in the governed research library and in durable repository documentation. The laboratory turns selected concepts into deterministic local output without external calls or hidden persistence.

    Detailed report

    Document Container Forensics: PDF, OOXML, Images, Metadata, and Parser Differentials

    A structural analysis of file signatures, ZIP ambiguity, OOXML relationships, PDF objects and revisions, image chunks, EXIF/XMP conflicts, parser differentials, sanitization, and safe inspection boundaries.

    Read governed report
    Focused laboratory

    Document Container Map

    Inspect a PDF, OOXML, PNG, or JPEG as inert bytes, identify its format, compute a digest, map structural features, and report active-content and ambiguity indicators.

    Open bounded laboratory