{"id":49889238,"url":"https://github.com/santhsecurity/openpack","last_synced_at":"2026-05-15T20:09:08.183Z","repository":{"id":347028777,"uuid":"1192707220","full_name":"santhsecurity/openpack","owner":"santhsecurity","description":"Safe archive-reader for ZIP-derived formats (ZIP, CRX, JAR, APK, IPA) with BOM-safe checks.","archived":false,"fork":false,"pushed_at":"2026-05-09T21:22:27.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-09T23:30:55.263Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://santh.dev","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/santhsecurity.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-26T13:37:41.000Z","updated_at":"2026-05-09T21:22:30.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/santhsecurity/openpack","commit_stats":null,"previous_names":["santhsecurity/openpack"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/santhsecurity/openpack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santhsecurity%2Fopenpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santhsecurity%2Fopenpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santhsecurity%2Fopenpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santhsecurity%2Fopenpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/santhsecurity","download_url":"https://codeload.github.com/santhsecurity/openpack/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santhsecurity%2Fopenpack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33078183,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T20:05:40.333Z","status":"ssl_error","status_checked_at":"2026-05-15T20:05:38.672Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-15T20:09:07.297Z","updated_at":"2026-05-15T20:09:08.172Z","avatar_url":"https://github.com/santhsecurity.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# openpack\n\nSafe archive reader for ZIP-derived container formats. It reads ZIP, JAR, APK, IPA, and CRX files with mandatory guardrails against Zip Slip, zip bombs, and resource exhaustion.\n\n```rust\nuse openpack::{OpenPack, Limits};\n\nlet limits = Limits {\n    max_archive_size: 256 * 1024 * 1024,\n    max_entry_uncompressed_size: 50 * 1024 * 1024,\n    max_total_uncompressed_size: 128 * 1024 * 1024,\n    max_entries: 2048,\n    max_compression_ratio: 100.0,\n};\n\nlet pack = OpenPack::open(\"app.apk\", limits).unwrap();\n\nfor entry in pack.entries().unwrap() {\n    println!(\"{} ({} bytes)\", entry.name, entry.uncompressed_size);\n}\n\nlet bytes = pack.read_entry(\"AndroidManifest.xml\").unwrap();\n```\n\n## Why this exists\n\nStandard archive readers trust the metadata inside the archive. Security tools reading user-supplied APKs or CRXs face Zip Slip path traversal, extreme compression ratio abuse, and excessive file counts. `openpack` enforces strict safety limits, rejects malicious paths like `../etc/passwd`, and prevents reading beyond configured memory boundaries.\n\n## Supported formats\n\n| Format | Features | Internal behavior |\n|--------|----------|-------------------|\n| Zip | Default | Standard ZIP archive reading. |\n| Jar | Default | Treated as standard ZIP. |\n| Apk | `apk` feature | Adds `read_android_manifest()` to extract package and version info. |\n| Ipa | `ipa` feature | Adds `read_info_plist()` to extract bundle identifiers. |\n| Crx | `crx` feature | Parses Chrome extension headers and locates the nested ZIP payload. |\n\n## Feature extraction\n\nRead format-specific metadata directly.\n\n```rust\n// Requires the \"apk\" feature\nlet pack = OpenPack::open_default(\"app.apk\").unwrap();\nlet manifest = pack.read_android_manifest().unwrap();\nprintln!(\"Package: {}\", manifest.package);\n```\n\n## Configuration\n\nOverride safety limits via TOML.\n\n```toml\nmax_archive_size = 104857600\nmax_entry_uncompressed_size = 10485760\nmax_total_uncompressed_size = 52428800\nmax_entries = 1000\nmax_compression_ratio = 50.0\n```\n\n## Contributing\n\nPull requests are welcome. There is no such thing as a perfect crate. If you find a bug, a better API, or just a rough edge, open a PR. We review quickly.\n\n## License\n\nMIT. Copyright 2026 CORUM COLLECTIVE LLC.\n\n[![crates.io](https://img.shields.io/crates/v/openpack.svg)](https://crates.io/crates/openpack)\n[![docs.rs](https://docs.rs/openpack/badge.svg)](https://docs.rs/openpack)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanthsecurity%2Fopenpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsanthsecurity%2Fopenpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanthsecurity%2Fopenpack/lists"}