Hacktricks-skills macos-serial-number-decoder
Decode and analyze Apple device serial numbers to extract manufacturing location, date, and model information. Use this skill whenever you need to parse Apple serial numbers, investigate device origins, analyze hardware for security assessments, or understand when/where a Mac was manufactured. Trigger this for any 12-character alphanumeric Apple serial number analysis, device forensics, or hardware investigation tasks.
git clone https://github.com/abelrguezr/hacktricks-skills
skills/macos-hardening/macos-red-teaming/macos-mdm/macos-serial-number/SKILL.MDmacOS Serial Number Decoder
Decode Apple device serial numbers to extract manufacturing information, dates, and model details.
Quick Start
When given a serial number, follow this process:
- Validate the serial number format (12 alphanumeric characters for post-2010 devices)
- Parse each segment according to the structure below
- Decode the manufacturing location, date, and model
- Report findings in a clear summary
Serial Number Structure
Apple devices post-2010 use 12-character serial numbers:
[1-3] [4-5] [6-8] [9-12] │ │ │ │ │ │ │ └─ Model number │ │ └─ Unique identifier │ └─ Year & week of manufacture └─ Manufacturing location
Example: C02L13ECF8J2
C02L13ECF8J2| Segment | Characters | Value | Meaning |
|---|---|---|---|
| Location | 1-3 | | China (specific city) |
| Year/Week | 4-5 | | 2014, Week 1 |
| Unique ID | 6-8 | | Device identifier |
| Model | 9-12 | | Model number |
Manufacturing Location Codes
Decode the first 3 characters to identify the factory:
United States
,FC
,F
,XA
,XB
,QPG8
International Locations
- MexicoRN
- Cork, IrelandCK
- Foxconn, Czech RepublicVM
,SG
- SingaporeE
- MalaysiaMB
,PT
- KoreaCY
,EE
,QT
- TaiwanUV
China (Multiple Locations)
,FK
,F1
,F2
,W8
,DL
,DM
,DN
,YM
,7J
,1C
,4H
,WQF7
,C0
,C3
- Specific citiesC7
Special
- Refurbished deviceRM
Manufacturing Date Decoding
Year (4th Character)
| Character | Period |
|---|---|
| First half 2010 |
| Second half 2010 |
| First half 2011 |
| Second half 2011 |
| First half 2012 |
| Second half 2012 |
| First half 2013 |
| Second half 2013 |
| First half 2014 |
| Second half 2014 |
| First half 2015 |
| Second half 2015 |
| First half 2016 |
| Second half 2016 |
| First half 2017 |
| Second half 2017 |
| First half 2018 |
| Second half 2018 |
| First half 2019 |
| Second half 2019 |
| 2020+ |
Week (5th Character)
| Character | Week Number |
|---|---|
| Weeks 1-9 |
| Week 10 |
| Week 11 |
| Week 12 |
| Week 13 |
| Week 14 |
| Week 15 |
| Week 16 |
| Week 17 |
| Week 18 |
| Week 19 |
| Week 20 |
| Week 21 |
| Week 22 |
| Week 23 |
| Week 24 |
| Week 25 |
| Week 26 |
| Week 27 |
| Week 28 |
Important: For second half of the year (characters D, F, H, K, M, P, R, T, V, X, Z), add 26 to the week number.
Output Format
Always present decoded information in this structure:
## Serial Number Analysis **Serial Number**: [FULL SERIAL] ### Manufacturing Details - **Location**: [CODE] - [COUNTRY/FACTORY] - **Year**: [YEAR] - **Week**: [WEEK NUMBER] - **Estimated Date**: [APPROXIMATE DATE] ### Device Information - **Unique ID**: [ID] - **Model Code**: [MODEL] - **Refurbished**: [YES/NO] ### Notes [Any relevant observations about the device origin or age]
Examples
Example 1: Standard Decode
Input:
C02L13ECF8J2
Output:
## Serial Number Analysis **Serial Number**: C02L13ECF8J2 ### Manufacturing Details - **Location**: C02 - China (specific city) - **Year**: 2014 (First half) - **Week**: 1 - **Estimated Date**: January 2014 ### Device Information - **Unique ID**: 3EC - **Model Code**: F8J2 - **Refurbished**: No ### Notes Device manufactured in China during early 2014.
Example 2: Refurbished Device
Input:
RM1K25ABC123
Output:
## Serial Number Analysis **Serial Number**: RM1K25ABC123 ### Manufacturing Details - **Location**: RM - Refurbished device - **Year**: 2013 (Second half) - **Week**: 27 (25 + 26 = 51, adjusted to week 27 of second half) - **Estimated Date**: December 2013 ### Device Information - **Unique ID**: ABC - **Model Code**: 123 - **Refurbished**: Yes ### Notes This is a refurbished device. Original manufacturing date may differ from refurbishment date.
Common Use Cases
- Security Assessments: Determine device age and origin for penetration testing
- Forensics: Establish device timeline and manufacturing provenance
- Asset Management: Track device lifecycle and warranty periods
- Red Teaming: Understand target hardware for macOS exploitation planning
Validation Checklist
Before reporting results, verify:
- Serial number is exactly 12 characters
- All characters are alphanumeric
- Year character is valid (C-Z range)
- Week character is valid (1-9 or C-Y excluding vowels and S)
- Location code matches known patterns