Skip to content

Python Pip Package 67 bytes (Minimal) #161

@dtmsecurity

Description

@dtmsecurity

Entry Info

File Info

  • Target File Type: .tgz (gzipped tar archive - pip package)
  • Target File Size: 67 bytes
  • SHA256 Hash: ddc6197c37e92ad21f144475507af9bb530c56c394d8b4bb05eb5035f466326b

File Contents

H4sIAAAAAAAC//PQL04tKS3QK6hkoBkwgABctIGBIRIbLG5mAqQUDBhGAa1BQVFmXomGmeZoSIxMAAC5YTaHAAQAAA==

Environment Info

Target Software and Version

  • Python: 3.8 or later
  • pip: Any version (tested with pip 21.0+)

Environment Setup

Description of Target Software's Environment (Platform/OS, Setup Instructions, etc.)

Platform: Linux, macOS, or Windows

Setup Instructions:

  1. Install Python 3.8 or later
  2. Ensure pip is installed (usually comes with Python)
  3. Run: pip install bggp6_minimal_67b.tgz -v

Expected Behavior:

  • Prints "6" during installation (visible with -v flag)
  • Installation will error out (expected behavior for minimal entry)
  • Uses old-style pre-POSIX tar format without EOF marker

Additional Info

Technical Details:

  • Uses pre-POSIX old-style tar format (no ustar magic bytes)
  • Directory name optimized to single character 'H' for best gzip compression
  • File permissions set to 000 (compresses better than standard 644)
  • No tar EOF marker (saves 7 bytes)
  • Payload: print(6) (8 bytes)

Optimizations:

  1. Old-style tar format avoids ustar header overhead
  2. Single-char directory 'H' chosen for optimal gzip compression with this specific payload
  3. Mode 000 compresses better than any other permission set
  4. No EOF marker - tar archives can function without the traditional 1024-byte null trailer

Test Command:

pip install bggp6_minimal_67b.tgz -v

Expected Output:
The package will print "6" during installation before erroring out due to missing metadata.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BGGP EntryBGGP6This issue was created during BGGP6VerifiedThis entry has been verified

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions