Rewrite the .name / .marketing fields and banner comments in
include/device/chip_db_table.h and chip_db_table_rop.h from gaster's
canonical SecureROM SRTG -> offset table (gaster.c:519-808), so the
CLI announces the physical chip that is actually plugged in. Each
row carries a "gaster.c:NNN" comment marker traceable to the source
of truth. Offsets, CPIDs and struct layout are unchanged.
Relabels: 0x8947 (was "A7 / iPhone 5s", now S5L8947 = A5 Rev B /
Apple TV 3rd gen rev A); 0x8950 / 0x8955 (were "A5-class Apple TV",
now A6 / A6X); 0x8960 (was "A10 / iPhone 7", now A7 / iPhone 5s);
0x8002 (was "S3 / Watch Series 3", now S1P/S2/T1 covering Watch
Series 1/2 and MacBook Pro Touch Bar T1); 0x8004 GPS+Cellular
qualifier dropped; 0x8000 / 0x8003 A9 Samsung/TSMC labels swapped
to match APL0898 / APL1022; 0x8010 / 0x8011 marketing broadened to
cover the full ship list.
Add tests/chip_db_canary.c, wired as a build-time prerequisite of
tr4mpass via the new Makefile .chip-db-canary target. The probe
walks a golden expected (cpid, name-substr, marketing-substr,
checkm8) table and fails the build on drift, defeating a repeat of
issue #53. STRICT_CHIP_DB=1 by default; make STRICT_CHIP_DB=0
bypasses the probe for distro-package chip-table update races
(T5 "Chip-DB canary strictness" note).
Files modified:
- include/device/chip_db_table.h
- include/device/chip_db_table_rop.h
- Makefile
- .gitignore
- tests/chip_db_canary.c (new)
Closes: #53
Converts the Path A pipeline from stubs to a working implementation for
A5-A11 devices, adds real certificate extraction via lockdownd and ECDSA
P-256 signing, and introduces a comprehensive mock-based test suite.
Activation
- cert_extract: lockdownd-backed DeviceCertificate,
AccountTokenCertificate, UniqueDeviceCertificate with base64 decode
and CertificateChain array fallback.
- signer: OpenSSL EVP ECDSA P-256 sign/verify with DER-encoded
signatures plus a test keypair generator.
- record.c: 3 of 6 cert fields now populate from live device data.
AccountTokenSignature signs when TR4MPASS_SIGNING_KEY is set.
FairPlayKeyData, RKCData, SepNonce remain documented stubs
(SEP-blocked per 26.3-vulnerability.md).
Path A bypass
- path_a_ramdisk: iBSS/iBEC/devicetree/trustcache/ramdisk upload via
libirecovery, reconnect handling between DFU and recovery stages,
iBoot go/bootx commands, SSH readiness poll.
- path_a_ssh: libssh2 + SCP. Mounts rootfs rw (apfs then hfs), runs
AMFI patcher, backs up and replaces /usr/libexec/mobileactivationd
with a user-supplied patched binary, verifies mode.
Build, CLI, config
- Makefile: add libssh2 dependency, split test targets into
hw-independent (make test) and full mock (make test-mocks).
- env_config + cli_flags: 12 new --flags for ramdisk, SSH, signing
paths; flags map to TR4MPASS_* env vars. --verbose prints summary.
- start.sh slimmed; helpers extracted to start-helpers.sh.
Test suite (20 to 248 tests)
- Mock framework under tests/mocks/ intercepts libimobiledevice,
libirecovery, libusb, libssh2, libcurl, plus mobileactivation and
afc. Staging API in mock_control.h.
- Unit tests per module: cert_extract, signer, ramdisk, SSH jailbreak,
env_config.
- Integration tests in tests/integration/: 6 Path A E2E scenarios
(happy path, exploit fail, reconnect timeout, SSH auth fail, SCP
fail, missing env) and 3 Path B scenarios (identity manipulation
works, nonce barrier rejection is handled cleanly, signal
detection). Path B tests verify the tool reports the SEP barrier
failure rather than misclaiming success.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Moves the iOS 26.3+ research materials (captive_portal/, vulnhunt/,
plus untracked submission/, bounty/, notes/, tasks/, .irecovery) out
of the public tr4mpass tool repository into a separate private
research workspace.
This repo now contains only what is needed to build and run the
public tr4mpass tool: src/, include/, Makefile, start.sh, README.md,
26.3-vulnerability.md.
Updates .gitignore to drop the obsolete entries for the moved
directories and add tr4mpass + .irecovery.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Bug bounty reports contain sensitive vulnerability details that
should not be in a public repository.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Found DisableHactivation and allow-hactivation flags in restored_external.
Both persist via lockdownd but only affect restore flow, not normal activation.
FDR-LOCAL signed records still rejected due to nonce validation.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Comprehensive penetration testing on iPad8,10 iOS 26.3:
- USB activation: all paths tested, blocked by activation nonce
- Factory activation commands REMOVED on iOS 26.3
- AFC read/write confirmed but sandbox blocks activation files
- Recovery mode env vars don't persist on A12+
- bookassetd exploit not processed on 26.3 (patched)
- Apple's real drmHandshake captured (serverKP, FDRBlob)
- Device nonces captured from recovery mode
- Exploit chain document with three attack paths
- Captive portal infrastructure built and tested locally
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Added notes/ and tasks/ (Claude Code scaffolding) to .gitignore per
commit skill rules. Removed them from git tracking -- files remain on
disk for local use but will never reach the repository. Also added
additional secret patterns (.pfx, .jks, secrets.*) and !.env.example.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>