Demystifying 5G Security Understanding the Registration Prot...#1386
Merged
carlospolop merged 2 commits intomasterfrom Sep 7, 2025
Conversation
…ation Pro... - Remove searchindex.js (auto-generated file)
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://bishopfox.com/blog/demystifying-5g-security-understanding-the-registration-protocol Content Categories: Based on the analysis, this content was categorized under "Pentesting Network > Telecom Network Exploitation (add a subsection: "5G NAS Registration Attacks: SUCI leaks, downgrade to EEA0/EIA0, and NAS replay")". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
4d8992e to
318e919
Compare
Collaborator
Author
|
merge |
github-actions Bot
pushed a commit
that referenced
this pull request
Sep 7, 2025
…Security__Understanding_the_Regist_20250905_011652 Demystifying 5G Security Understanding the Registration Prot...
carlospolop
added a commit
that referenced
this pull request
Sep 29, 2025
…Security__Understanding_the_Regist_20250905_011652 Demystifying 5G Security Understanding the Registration Prot...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
What this post delivers.
A hands-on, low-level walkthrough of 5G UE registration, where NAS security is not yet active, and how attackers can exploit that pre-security window. It explains packet flows, crypto negotiation, identifier protection, concrete replay rules, and tooling (Open5GS, Wireshark, 5GReplay, Sni5Gect, and an internal sniffer) so defenders can reproduce tests, detect weaknesses, and harden deployments.
Context and testing constraints.
5G adoption i...
🔧 Technical Details
Exploit the unauthenticated NAS window. Target Registration Request and early Authentication (steps 1–2) before Security Mode Command. Without integrity/ciphering, passively read or actively alter capability fields to influence later crypto selection.
Track subscribers via SUCI failures. If devices/USIMs transmit plaintext SUPI instead of SUCI, capture initial NAS to extract MCC/MNC/MSIN and perform persistent tracking across time and location.
Downgrade/bidding-down null algorithms. Use an on-path position or rogue gNB to modify the UE’s advertised EEA/EIA to force EEA0/EIA0, eliminating air-link confidentiality/integrity and enabling eavesdropping/tampering.
Replay initial registration. Record NGAP InitialUEMessage carrying NAS Registration Request and replay to the AMF. Example 5GReplay rule: trigger on
ngap.procedure_code==15andnas_5g.message_type==65to forward matching packets. Acceptance indicate...🤖 Agent Actions
I analyzed the Bishop Fox blog and updated HackTricks with the actionable 5G NAS registration attack techniques (SUCI leaks, null algorithm downgrade, and NAS replay) in the most relevant place: Telecom Network Exploitation under Pentesting Network.
What I did:
Files changed:
Notes:
This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.
🗑️ File Cleanup