Create your free account or sign in to continue your search New to LinkedIn? Join now By clicking Continue to join or sign in, you agree to LinkedIn’s User Agreement, Privacy Policy, and Cookie Policy.
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Articles by Karol Mazurek
Nowy rok akademicki w seminarium
W Metropolitalnym Seminarium Duchownym w Lublinie odbyła się uroczysta inauguracja roku akademickiego i formacyjnego 2025/2026. Inauguracja nowego roku w seminarium. Konrad Homa W wydarzeniu uczestniczyli przedstawiciele władz miejskich, lubelskich uczelni, biskupi, reprezentanci zaprzyjaźnionych seminariów duchownych: zamojsko-lubaczowskiego, siedleckiego, sandomierskiego oraz seminarium Zgromadzenia Księży Marianów oraz inni goście.
Breaking Hardened Runtime
The 0-Day Microsoft Delivered to macOS Press enter or click to view image in full size Microsoft's .NET MAUI framework for macOS has a vulnerability that bypasses the Hardened Runtime protection by not enforcing code signing validation on managed DLLs in the MonoBundle directory. It permits arbitrary code injection through modified assemblies even though the main executable is properly signed and hardened.
When Decompiled Code Lies
This post shows how a format string vulnerability in Apple's TCC daemon isn't actually exploitable due to assembly-level stack manipulation that provides the missing arguments. It demonstrates how bugs aren't always what they seem, as low-level calling conventions, compiler optimizations, or decompiler artifacts can mask or "fix" high-level code issues.
TCC Bypass in Visual Studio Code via misconfigured Node fuses on macOS
Responsible Disclosure of unaddressed vulnerability. Press enter or click to view image in full size Microsoft Visual Studio Code, one of the world’s most popular code editors, contains a vulnerability that allows attackers to bypass macOS Transparency, Consent, and Control (TCC) protections. Microsoft has refused to patch this vulnerability, citing that “it falls below its servicing criteria due to its requirement for local access“.
A mouse move that crashed the system
This is the weirdest way I've found a stack overflow vulnerability so far (patched in 15.6). This blog post is for those interested in the macOS kernel IOKit part or Apple Silicon Exploit Development masochists looking for a target. Enjoy! You can find the article on the AFINE blog where I published it: https://afine.com/a-mouse-move-that-crashed-the-system-stack-buffer-overflow-in-display-driver-on-macos/
DLL Hijacking in Check Point SmartConsole installer aka CVE-2024-24916
CVE-2024–24916 DLL Hijacking in Check Point SmartConsole installer on Windows A brief post about a red team assessment from last year, where employees installed software from a shared SMB. It shows how DLL hijacking in the Check Point SmartConsole installer (CVE-2024–24916) can be exploited for initial access on Windows. You can find the article on the AFINE blog where I published it: https://afine.com/dll-hijacking-in-check-point-smartconsole-installer-aka-cve-2024-24916/
When Memory Refuses to Forget
Sensitive Data Persistence in Desktop Applications. RAM is supposed to be volatile, yet passwords, API keys, and tokens can persist in a process’s memory long after you believe you’ve freed them, ready to be harvested by any code with sufficient privileges. High-level languages rarely guarantee a secure wipe, and compiler optimizations can silently negate manual memset calls, leaving multiple hidden copies scattered across the heap.
Threat of TCC Bypasses on macOS
Why developers must take bypass vulnerabilities seriously. macOS users often face pop-ups requesting permission to access files, cameras, and microphones. These prompts are part of Apple’s (TCC) framework (Transparency, Consent, and Control), which is essential for safeguarding privacy by preventing unauthorized access to sensitive data. However, many software vendors and security professionals underestimate TCC’s importance, viewing it as a mere annoyance.
Case Study: IOMobileFramebuffer NULL Pointer Dereference
How broken access and Null Pointer Dereference vulnerabilities were discovered in the macOS IOMobileFramebuffer (AppleCLCD2) service. In my latest research, I discovered two vulnerabilities in the AppleCLCD2 service on macOS in IOMobileFramebufferUserClient::s_swap_submit external method (selector 5). This issue can be triggered by sending a specially crafted 1300-byte buffer to the driver.
PWN Bad grades challenge - HTB
Member-only story SC & ASLR & NX bypass and double pointer tips [x64] Karol Mazurek · Follow 5 min read · -- This is a re-uploaded article from years ago. HTB banned it because the challenge was still active. I promised the audience to re-upload it after the challenge is retired. This is my fourth walkthrough referring to the methodology described here. It will be as always: concise, straight to the point. without the steps that lead to the rabbit hole. 0.
History of NULL Pointer Dereferences on macOS
Finding a crash while fuzzing is just the beginning of Vulnerability Research. After finding a crash, Exploit Development is often a long journey. Not every bug is exploitable, and my previous article (Case Study: Analyzing macOS IONVMeFamily Driver Denial of Service Issue) is great proof of that. Sometimes, I am sure that something can be exploited, but then I face a wall of mitigations implemented by the OS.
Posługa lektoratu
Alumni lubelskiego seminarium przyjęli posługę lektoratu. Uroczystość miała miejsce podczas Mszy Świętej sprawowanej pod przewodnictwem bp. Mieczysława Cisło w kościele seminaryjnym. Obrzęd ustanowienia lektorów odbył się w lubelskim seminarium. Michał Pióro Biskup w homilii podkreślił wielkie znaczenie czytania Słowa Bożego w zgromadzeniu liturgicznym, wskazując na odpowiedzialność lektorów za przekazywanie słów Pisma Świętego wspólnocie wiernych.
History of NULL Pointer Dereferences
Technical analysis of NULL Pointer Dereference bugs, mitigations, and exploit development challenges on Apple Silicon macOS. Finding a crash while fuzzing is just the beginning of Vulnerability Research. Afterward, Exploit Development is often a long journey.
Task Injection on macOS
Injecting code to the process using its Task Port on macOS Karol Mazurek · Follow 1 min read · -- Welcome to another article in the series on macOS security internals! This is an expansion article for my previous work about Mach IPC Security on macOS, where I described the concept of Tasks and Processes and how they are interconnected on macOS: Mach IPC Security on macOS Introduction to Mach IPC and System Services security karol-mazurek.medium.com Although I introduced the security of the...
Akolitat w lubelskim seminarium
W II niedzielę Adwentu, podczas uroczystej Mszy Świętej w kościele seminaryjnym, sześciu kleryków zostało ustanowionych akolitami. Nowi akolici w lubelskim seminarium. Marcin Fidor Liturgii przewodniczył biskup Józef Wróbel, który pobłogosławił akolitów i na znak przyjętej posługi wręczył każdemu z nich patenę z chlebem, którą będą odtąd podawać kapłanom podczas sprawowania Najświętszej Ofiary.
Kernel Extensions on macOS
Introduction to security behind the KEXT loading process Karol Mazurek · Follow 14 min read · -- In my latest article, I introduced the MACF on macOS and discussed how it utilizes Policy Modules in the form of kernel extensions: MACF on macOS Introduction to Mandatory Access Control Framework on macOS karol-mazurek.medium.com This article shows how macOS defends us from malware that wants to load a new kext to gain kernel-level code execution.
Exceptions on macOS
Introduction to Exception Handling and Syscalls on macOS Karol Mazurek · Follow 12 min read · -- This article explores how macOS handles exceptions and system calls on Apple Silicon, focusing on Exception Levels, transition mechanisms, and processing synchronous and asynchronous exceptions.
Fixing an Infinite Loop on Unix
Symlinks, Firmlinks, /dev, FIFO, and other magic words in Unix Karol Mazurek · Follow 10 min read · -- Writing software often means hitting roadblocks you never see coming—and sometimes, the solution is much simpler than you think. Recently, I encountered an issue with my MachOFileFinder on MacOS. It led me down an exciting path involving links and recursive loops they create and various file structures, flags, and other stuff related to the Unix file system.
Snake&Apple IX - TCC
Introduction to Transparency, Consent, and Control on macOS Karol Mazurek · Follow 18 min read · -- Welcome to another article in the series on macOS security internals! Transparency, Consent, and Control (TCC) is the final layer in the Apple App Security mode. Similar to the Sandbox, it aims to mitigate the threat of malware running successfully on macOS. However, there is a distinction between them.
Optimizing Mach-O Detection
How to find MachO’s and check their types fast with Python In the past year, while learning the byte structure of Mach-O files, I made the MachOFileFinder tool for identifying Mach-O binaries on macOS. Recently, I received insightful feedback on Twitter suggesting different ways to optimize the detection process from a few researchers: In this article, I will share my journey optimizing MachOFileFinder.
Optimizing Mach-O Detection
How to find MachO’s and check their types fast with Python Karol Mazurek · Follow 7 min read · -- In the past year, while learning the byte structure of Mach-O files, I made the MachOFileFinder tool for identifying Mach-O binaries on macOS. Snake&Apple I — Mach-O Deep dive in Mach-O files on ARM64 macOS with Python.
Apple UUID Finder
Apple executables and their universally unique value Karol Mazurek · Follow 5 min read · -- While studying macOS’s TCC mechanism, particularly how com.apple.macl works, I encountered the challenge of identifying apps by their UUIDs due to Apple’s system’s lack of direct methods.
System Integrity Protection (SIP)
This article explores the workings, components, security implications, and management of System Integrity Protection. It builds upon the previous article, as SIP is the default Sandbox Profile used for all macOS apps: In Unix-based systems, the root user traditionally has unrestricted access to all files and processes. Such privilege allows powerful operations but also presents security risks. Malware with root privileges can manipulate files and make harmful changes.
App Sandbox startup
This article will introduce how the Sandbox is enforced on the app. The main point is to show what is necessary for the sandbox to be enforced on the app on launch, which system component uses it, and where it is used during the execution flow. Below, we can see a high-level overview of that: Both of the above-shown ways end up with a call to Sandbox Kernel Extension that initializes Sandbox on the app process.
Sandbox Validator
Building a tool to verify decompiled Sandbox Profiles in C I have published two posts about App Sandbox on macOS. The first one was about compiling the Sandbox Profiles with sandbox_compile_file: After publishing the article guyrucommented on this to check out their SandBlaster forkif I am interested in Sandbox Profiles decompilation: I looked into the tool and noticed no Sandbox Operation extractor had been implemented.
Snake&Apple - App Bundle Ext.
Introduction to the App Bundle on macOS with Python Welcome to another article in the series on macOS security internals! This time, we will explore how Applications work on macOS. We will learn their structure step-by-step by building an example minimalistic app that executes a bash script instead of Mach-O binary on launch. We will also extend CrimsonUroboros's options so it understands the app bundles.
Sandbox Detector
Building an Apple Sandbox Detector on macOS in C In the article about various binary protections on macOS, we learned how to identify sandboxing through app entitlements using codesign: However, this method assumes everything works as expected on launch and is only a static check. In this post, we will learn how to ensure the app we launched runs in sandbox mode by knowing the Process ID (PID).
Cracking Electron Integrity
How to patch apps with ElectronAsarIntegrity on macOS The best part of knowledge sharing is receiving feedback from the audience, especially constructive criticism, which helps to improve. Recently, I wrote a brief introduction to patching macOS apps, where I also put some hints on the patching process for electron apps: After publishing the blog post, Luca Carettoni pointed out that Electron apps that use ElectronAsarIntegrity patched the above way will not work: Luca is 100% right.
Cracking macOS apps
How to patch macOS apps without losing its capabilities Welcome to this brief introduction to patching macOS apps. This guide presents a step-by-step process for patching the app without losing any entitlements so the application works as previously with our modifications. There are also some hints on the patching process for electron apps and how to resign the app to allow dynamic patching (with a debugger).
SBPL Compilator
Building a SandBox Policy Language Compilator Wrapper in C I am currently learning different things about Apple App Sandbox and stumbled on the .com.apple.containermanagerd.metadata.plist which stores compiled Sandbox Profile in SandboxProfileData field: The sandbox_inspector is a custom script I uploaded to the Snake & Apple repository.
Snake&Apple VII - Antivirus
By Karol Mazurek Introduction to the Gatekeeper, Quarantine, and XProtect on macOS Welcome to another article in the series on macOS security internals! The last episode explained how the Mandatory Access Control Framework ( MACF) enforces its policies focusing on Apple Mobile File Integrity ( AMFI).
Talkpal - vulnerability disclosure
By Karol Mazurek Full report disclosure of an unpatched vulnerability in Talkpal. I was checking out how the AI language teacher - Talkpal works. By the way, I also checked for any simple bugs related to bank card handling. The trick will allow you to get a free membership for a year (probably if they do not patch for another, too), while it normally costs $12...
Do You Like Death? (XI)
The lifecycle of a Dynamic Loader from its creation to its termination. This is the eleventh and the last article in the series about debugging Dyld-1122 and analyzing its source code. We will learn how Dyld load dependent dylibs, bind them all together, return the address of the , calls it and finally terminates.
Do You Like Death? (X)
The lifecycle of a Dynamic Loader from its creation to its termination. This is the tenth article in the series about debugging Dyld-1122 and analyzing its source code. We will introduce , which holds information about the state of externally viewable objects in the system thatwe are loading, such as dyld, executable, and all dylibs.
DYLD - Do You Like Death? (IX)
DYLD — Do You Like Death? (IX) The lifecycle of a Dynamic Loader from its creation to its termination. This is the ninth article in the series about debugging Dyld-1122 and analyzing its source code. We will introduce RuntimeState which APIs are used for tracking process-related data, such as threads or loaded Mach-Os. Please note that this analysis may contain some errors as I am still learning and working on it…
DYLD - Do You Like Death? (VIII)
DYLD — Do You Like Death? (VIII) The lifecycle of a Dynamic Loader from its creation to its termination. This is the eighth article in the series about debugging Dyld-1122 and analyzing its source code. We will cover PathOverrides member of the ProcessConfig, enumerate path-specific Dyld Environmental Variables, and understand how overrides and path fallbacks work for Dylibs.
Security issue with XTB
Problem with lack of 2FA on the XTB exchange platform. This is a short blog post whose primary purpose is to draw attention to the need for 2FA to be implemented wherever there is a cash flow or sensitive user data on any platform or application. By writing this, I also want to encourage everyone to use 2FA whenever possible so it is harder to hack you when your password is leaked.
DYLD - Do You Like Death? (VII)
The lifecycle of a Dynamic Loader from its creation to its termination. This is the seventh article in the series about debugging Dyld-1122 and analyzing its source code. We will cover logging and dyldCache members of the ProcessConfig and understand how three environmental variables: DYLD_PRINT_TO_FILE,DYLD_SHARED_REGION & DYLD_SHARED_CACHE_DIR works. Please note that this analysis may contain some errors as I am still learning and working on it alone. No one has checked it for mistakes.
Snake&Apple VI - Apple Mobile File Integrity
Introduction to the Apple Mobile File Integrity on the macOS with Python In Snake&Apple II — Code Signing, I explained how Code Signing works and introduced AMFI’s Trust Caches without further explanation. Later, in Snake&Apple IV—Dylibs, I introduced the Dynamic Library concept and protections against Dynamic Library Hijacking vulnerability.
Medium Member Friend Links bug
Full disclosure of the report Sometimes, I check the platforms I use to see if they work correctly. In the case of Medium, not only does the new Friend of Medium Links not work correctly, but also Support, as we can conclude from the lack of any response to the below report. I found a bug in the new Friend links generated by third parties with purchased Friend of Medium subscriptions. Medium counts them the same way as Friend links generated by the author.
DYLD - Do You Like Death? (VI)
The lifecycle of a Dynamic Loader from its creation to its termination. This is the sixth article in the series about debugging Dyld-1122 and analyzing its source code. We will now set the ProcessConfig using a previously created allocator. We will cover Process and Security members of the ProcessConfig and discuss AMFI kernel extension. Please note that this analysis may contain some errors as I am still learning and working on it alone. No one has checked it for mistakes.
PWN Antidote challenge - HTB
NX bypass && ROP chain && RET2CSU [ARM][x32] This is my 10th walkthrough, referring to the methodology described here. It will be as always: concise straight to the point without the steps that lead to the rabbit hole. 0. Download the binary: 1. Basic checks: 2.
DYLD - Do You Like Death? (V)
The lifecycle of a Dynamic Loader from its creation to its termination. This is the fifth article in the series about debugging Dyld-1122 and analyzing its source code. We will start with the EphemeralAllocator function and finish after examining the PersistentAllocator. Please note that this analysis may contain some errors as I am still learning and working on it alone. No one has checked it for mistakes. Please let me know in the comments or contact me through my social media if you find anything.
Snake&Apple V - Dyld
Introduction to the Dynamic Linker concept on the macOS with Python. Welcome to another article in the series on macOS security internals! In the Snake&Apple I — Mach-O, I introduced the Mach-O file format, which provides Dynamic Loader (Dyld) information on Dynamic Libraries (dylibs). In turn, the topic of Dynamic Libraries was discussed in depth in the last publication, Snake&Apple IV — Dylibs.
DYLD - Do You Like Death? (III)
The lifecycle of a Dynamic Loader from its creation to its termination. This is the third article in the series about debugging Dyld-1122 and analyzing its source code. We will start from the getUuid function in dyldMain.cpp, which is the exact point where we finished the last article. Please note that this analysis may contain some errors as I am still learning and working on it alone. No one has checked it for mistakes.
6 tips for testing Python code
This short article is about the handy tricks I found while writing tests. In this publication, I will share a few tricks I developed while writing tests for Python code that could speed up some of your processes. I want to point out that I am not a Python programmer by profession, and the code I write and the tips I present here will not necessarily be professional but rather serve as hacks for me to test my code efficiently.
DYLD - Do You Like Death? (II)
The lifecycle of a Dynamic Loader from its creation to its termination. This is the second article in the series about debugging Dyld-1122 and analyzing its source code. We will start from the isBuiltForSimulator function, which is the exact point where we finished the last article. Please note that this analysis may contain some errors as I am still learning and working on it alone. No one has checked it for mistakes.
DYLD - Do You Like Death? (I)
The lifecycle of a Dynamic Loader from its creation to its termination. This series contains my notes on debugging Dyld-1122 and analysing its source code. They are arranged in order from the beginning of the startup process, specifically when XNU just loaded the Dyld to memory. I will not publish the whole analysis in one article, as it would be hard to follow and require a lot of scrolling, so I divided it into parts.
Snake&Apple IV-Dylib Hijacking | Medium
Welcome to another article in the series on macOS security internals! In the Snake&Apple I — Mach-O, I briefly introduced Load Commands, which provides Dynamic Loader (dyld) information on Dynamic Libraries (dylibs) without further explanation. This article will go deep into the concept of libraries and explain the Dylib Hijacking vulnerability.
Show More
loading
Actions
Is this you?
As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.Get in touch with Karol
Contact Karol, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack