# Rick Mark-Penwell > Personal site of Rick Mark-Penwell (also known as Rick Mark), a security, privacy and AI engineer and hardware security researcher known for research into Apple's T2 security chip, Mac and iPhone firmware, secure boot, and AI security. The site publishes research on Apple platform security, the T2 chip, firmware, hardware and privacy, working papers on AI security and cryptography, and the products and open-source projects Rick builds. Pages are static HTML and can be read without JavaScript or authentication. The full text of every article is in [llms-full.txt](https://rickmark.me/llms-full.txt). Research is dated and may describe historical platform behavior. Articles tagged "working draft" (older ones are titled "WIP") are unfinished: preserve their caveats and distinguish proposals or speculation from demonstrated results. Working papers are dated to when the work was originally done, not when they were posted. Cite each article's canonical URL and date. The About page is the source for the author's biography; linked external projects have their own documentation. ## Start here - [About Rick Mark-Penwell](https://rickmark.me/about/): Biography, career and Apple security research. - [Research papers](https://rickmark.me/research/): Working papers on Apple and platform security, hardware, AI security and cryptography. - [Blog](https://rickmark.me/blog/): Complete chronological article archive. - [Products](https://rickmark.me/products/): Products and services with links to their own sites. - [Open-source projects](https://rickmark.me/#projects): Project and organization directory. - [About "WIP"](https://rickmark.me/blog/about-wip/): What the working-draft label means. ## Research papers - [An Undisclosed Generation Procedure in the SEC 2 Prime Koblitz Curves](https://rickmark.me/blog/undisclosed-generation-procedure-sec-2-prime-koblitz-curves/): 2026-11-11. The four SEC 2 prime-field Koblitz curves, secp256k1 among them, share regularities in their primes, coefficients and generators that the standard never states. A working draft reconstructing the generation procedure, testing attack paths, and marking what remains unexplained. - [Microfiche Experts: Geographically Streamed Mixture-of-Experts for Region-Adaptive Autonomous Driving](https://rickmark.me/blog/microfiche-experts-geographically-streamed-mixture-of-experts/): 2026-11-06. A design paper for a driving model whose middle layers are a sliding, density-warped grid of regional experts, with hard-switching legal rule layers and constraint pressure as one signal for drift detection, temporary deltas and an emergency expert. - [Constraint Pressure: What Grammar-Constrained Decoding Hides About Prompt Injection](https://rickmark.me/blog/constraint-pressure-grammar-constrained-decoding-prompt-injection/): 2026-10-24. Grammar-constrained decoding keeps an LLM classifier's output well-formed by discarding the model's own next-token distribution. A working draft arguing that the discarded mass, constraint pressure, is a prompt-injection signal, with falsifiable hypotheses and a pilot design. - [Trust Assumptions in Apple M-Series Secure Boot: Nonces, UID Fusing and the Factory Path](https://rickmark.me/blog/apple-m-series-trust-assumptions/): 2026-07-23. A working-draft threat model for Apple silicon Macs. It asks what happens to the SEP's random number generator, UID, anti-replay state and long-term key protection if non-consumer factory or datacenter images can run, and documents a validly signed DataCenter-domain ticket whose boot nonce is DEADBEEF. - [Mid-Layer Harm Probes: Detecting Harmful Intent Where the Concepts Live](https://rickmark.me/blog/mid-layer-harm-probes/): 2026-07-22. Output guardrails and fine-tuned refusals sit at the end of an LLM's stack, where jailbreaks can route around them. A working draft proposing harm detection from mid-layer activations: a side network fed by mapped neuron cohorts, with warming and cooling harm dimensions and a circuit breaker. - [WIP: iCloud Keychain Poisoning](https://rickmark.me/blog/wip-icloud-keychain-poisoning/): 2024-10-05. How a malicious device in your iCloud Keychain can pre-seed insecure items that enable lateral movement through reset tokens and unlock features. - [Windows Blue Pill: Compromise Without Breaking Secure Boot](https://rickmark.me/blog/windows-blue-pill-secure-boot-rollback/): 2022-05-30. A working draft on how a Windows machine could be turned into a hypervisor-level rootkit without breaking Secure Boot or the kernel driver model: roll the Secure Boot chain back to an older signed bootmgfw, run Windows as a Hyper-V guest, and use local kernel debugging from the host. Plus the undocumented BCD settings this surfaced. - [A pcapng Encapsulation for Hardware Buses, Starting with SPI](https://rickmark.me/blog/pcapng-hardware-bus-linktype/): 2022-01-21. pcapng already carries USB and other interfaces; embedded hardware buses have no standard encapsulation. A working proposal for a SPI link type, plus two general-purpose block types for link topology and link-state changes that would also serve Ethernet and other interfaces. - [A Bootkit from the Sanctioned Path: Abusing M1 Unsigned-OS Mode and auto-boot](https://rickmark.me/blog/m1-unsigned-os-bootkit/): 2021-10-21. Apple silicon lets an authorized admin boot a fully unsigned OS so the Mac isn't locked to macOS. A working draft on how that sanctioned path, plus auto-boot and no insecure-boot indicator, can be turned into a persistent, low-visibility bootkit, and what would detect or prevent it. - [The Lightning and USB Attack Surface: TOCTOU Storage, WebUSB and Accessory Signaling](https://rickmark.me/blog/lightning-usb-attack-surface/): 2019-04-29. A working survey of the iOS physical-connector attack surface: a FUSE harness that gives malicious USB mass storage a time-of-check/time-of-use split, a WebUSB page that reaches a hidden Apple device configuration from a browser, and accessory-ID signaling that can force DFU. Draws together badusb, lightning_strike and lightning_dfu. - [Mojo, Thor and Loki: Anatomy of a Mac Firmware and Kernel Implant](https://rickmark.me/blog/mojo-thor-loki-firmware-implant/): 2017-08-20. A single-machine analysis of a Mac implant stack: modified SMC and EFI firmware reflashed over the Thunderbolt controller, and MojoKDP, a kernel debug-port module recovered from memory that exposes two serial ports and talks over a hardcoded MAC and IP. Artifacts, detection, and what stays unproven. ## Articles - [About 'WIP'](https://rickmark.me/blog/about-wip/): 2024-11-30. Why Rick Mark-Penwell publishes early: what posts labelled WIP or working draft mean, and how they relate to later polished versions. - [WIP: How did PKI become a joke?](https://rickmark.me/blog/wip-how-did-pki-become-a-joke/): 2024-11-30. If a system asks for your private key or hands you one with your CSR, it is doing PKI wrong. Notes on how PKI practice went astray. - [Knowing what you don’t know…](https://rickmark.me/blog/knowing-what-you-dont-know/): 2024-10-27. How anyone on your network can wipe logs by abusing NTP and log rotation, and why that undermines security and forensic evidence. - [A Cautionary Tale...](https://rickmark.me/blog/a-cautionary-tale/): 2024-07-11. A personal account, drawn from fourteen years of observation, of events Rick Mark-Penwell believes were meant to discredit him. - [Dynamic Library Hardening - Read Only Thunks](https://rickmark.me/blog/dynamic-library-hardening-read-only-thunks/): 2022-07-30. A proposal to make dynamic-linking thunks read-only after binding, so stray writes cannot redirect imported function pointers. - [Ubiquity UniFi Security and Boot-chain Analysis](https://rickmark.me/blog/ubiquiti-unifi-security-and-boot-chain-analysis/): 2022-07-30. A boot-chain analysis of Ubiquiti UniFi devices on Annapurna Alpine v2, now under revision because a device-tree overlay may swap the chain early. - [Google: From the Citadel to the Dauntless](https://rickmark.me/blog/google-from-the-citadel-to-the-dauntless/): 2022-07-30. Conjecture from observation on Google Titan M (Citadel) and its successor Dauntless: write-protected RO regions, firmware confusion and update failures. - [Using the T2 for Detection and Forensics](https://rickmark.me/blog/using-the-t2-for-detection-and-forensics/): 2022-07-30. Using Apple's T2 chip as an independent vantage point for detecting malware and collecting forensics below the reach of endpoint security. - [USB Security in the Linux Kernel](https://rickmark.me/blog/usb-security-in-the-linux-kernel/): 2022-07-30. Written at Dropbox: why decades-old Linux USB code trusts devices too much, with examples of unvalidated input and a kernel patch. - [Work-in-Progress: Using Apple internal builds for RootKits](https://rickmark.me/blog/work-in-progress-using-apple-internal-builds-for-rootkits/): 2022-07-30. Working notes on Apple-internal kernel extensions such as MojoKDP found in a memory capture, and two theories for how they were signed. - [The Security Weakness of the M1](https://rickmark.me/blog/the-security-weakness-of-the-m1/): 2022-07-30. Why the encrypted iBoot on Apple's M1 makes its boot-integrity guarantees impossible to verify independently, plus other security regressions. - [Dissection of the Apple Internet Recovery protocol and Security Analysis](https://rickmark.me/blog/dissection-of-the-apple-internet-recovery-protocol-and-security-analysis/): 2022-07-30. A dissection of the Apple Internet Recovery protocol, how its BaseSystem and installer images are verified, and where a network attacker could interfere. - [Qualcomm Baseband Research](https://rickmark.me/blog/qualcomm-baseband-research/): 2022-07-30. Notes on the Qualcomm baseband firmware package Apple ships for iPhones: bootloaders, Hexagon DSP, TrustZone and hypervisor images. - [Plug'nPwn - Connect to Jailbreak](https://rickmark.me/blog/plugnpwn-connect-to-jailbreak/): 2022-07-30. Plug'nPwn, by Rick Mark, mrarm, Aun-Ali Zaidi and h0m3us3r: jailbreaking the Apple T2 security chip by simply connecting a USB-C cable. - [ACE Controller Secrets](https://rickmark.me/blog/ace-controller-secrets/): 2022-07-30. Reverse engineering the Apple ACE USB-C controller (TI TPS65986) on T2 Macs to find closed-case hardware debugging after the checkm8 port. - [Security Critical Kernel Object Confidentiality and Integrity](https://rickmark.me/blog/security-critical-kernel-object-confidentiality-and-integrity/): 2022-07-30. A CC BY 4.0 design, drawing on public ARM documentation, for protecting the confidentiality and integrity of security-critical kernel objects. - [Design: Hybrid PROM / SPI Flash](https://rickmark.me/blog/design-hybrid-prom-spi-flash/): 2022-07-30. A design for boot flash that pairs one-time-programmable PROM with SPI flash so the root of trust for secure boot cannot be rewritten. - [How Minimalism Hurts Security](https://rickmark.me/blog/how-minimalism-hurts-security/): 2022-07-30. How Apple's minimal boot UX hides a Mac's lowered security state, compared with the visible warnings Android and Chromebooks show. - [How Apple Gets Security Wrong](https://rickmark.me/blog/how-apple-gets-security-wrong/): 2022-07-30. A list of Apple security choices that hinder research and users: undocumented protocols, MFi gatekeeping, no physical attestation and DFU exposure. - [Design: Surface Area Reduction of the CS/ME by Using Bogus Public Keys](https://rickmark.me/blog/design-surface-area-reduction-of-the-cs-me-by-using-bogus-public-keys/): 2022-07-30. A proposal to shrink the Intel CS/ME attack surface by provisioning bogus public keys that lock out modules and features a device did not ship with. - [DataMigration iOS Mitigations](https://rickmark.me/blog/datamigration-ios-mitigations/): 2022-07-30. Two proposed iOS hardening features for subsystems that parse untrusted data, using the DataMigration framework as the worked example. - [The SIM Swap Revisited](https://rickmark.me/blog/the-sim-swap-revisited/): 2022-07-30. How SIM swaps work, from IMSI, IMEI, EID and Ki to cellular registration and eSIM provisioning, and where the process can be abused. - [Intel Goa’uld](https://rickmark.me/blog/intel-goauld-dark-symbiote/): 2022-07-30. An analysis of a suspicious Intel ME and AMT firmware capture: a duplicated boot partition, undocumented components and a possible in-the-wild CSME exploit. - [Apple USB Target Disk Mode](https://rickmark.me/blog/apple-usb-target-disk-mode/): 2022-07-30. An analysis of Apple Target Disk Mode over USB and Thunderbolt on modern Macs, how it differs from the FireWire original, and what it exposes to a host. - [Abusing EFI Variables and the AMT](https://rickmark.me/blog/abusing-efi-variables-and-the-amt/): 2022-07-30. Speculation on how ring 0 code could plant EFI variables in NVRAM, reach ring -1 and rewrite SPI flash, with notes on Intel AMT's role. - [How To: Bypass T-Mobile SIM block, steal all their money, and leave no trace…](https://rickmark.me/blog/how-to-bypass-t-mobile-sim-block-steal-all-their-money-and-leave-no-trace/): 2021-12-13. A deliberately provocative walkthrough of how weak T-Mobile account and SIM protections are, written to pressure the carrier after repeated complaints. - [On Warren’s Plan to Break Up Facebook](https://rickmark.me/blog/on-warrens-plan-to-break-up-facebook/): 2021-12-13. Why Facebook's value comes from being the ubiquitous system of record, and what that means for Elizabeth Warren's proposal to break it up. - [Puppeteer with ChromeOS](https://rickmark.me/blog/puppeteer-with-chromeos/): 2020-10-23. Driving headed Chrome on ChromeOS with Puppeteer to test WebUSB code that talks to iPhones and iPads over the usbmuxd protocol. - [checkra1n and the T2](https://rickmark.me/blog/checkra1n-and-the-t2/): 2020-10-06. Early notes on what SSH access to Apple's T2 chip via checkra1n makes possible, and where further security research on the T2 core could lead. - [The Execution of the Warrant](https://rickmark.me/blog/the-execution-of-the-warrant/): 2020-04-16. Twenty years after records were carted out of Arthur Andersen's Houston office, an essay on how search warrants are executed and what the public gets to see. ## Optional - [Full text of all articles](https://rickmark.me/llms-full.txt): Every article as Markdown, newest first. - [XML sitemap](https://rickmark.me/sitemap.xml): Canonical indexable pages with last-modified dates. - [Atom feed](https://rickmark.me/blog/feed.xml): Article feed.