first commit

This commit is contained in:
libroot 2026-11-19 04:39:11 +02:00
commit 0d90363116
Signed by: libroot
GPG key ID: 2AC68C029EBE9ACE
6510 changed files with 679146 additions and 0 deletions

View file

@ -0,0 +1,69 @@
{
"title": "Phone Number Extractor",
"type": "REPORTED",
"description": "A top secret XKEYSCORE training document from October 2009 describing the Phone Number Extractor capability, which automatically identifies and extracts telephone numbers from intercepted internet traffic including website content, email signature blocks, HTTP GET requests from mobile devices, HTTP POST submissions, and converged DNR/DNI collection — with operational examples targeting Iran, Lebanon, and Pakistan.\n",
"long_description": "This is an October 2009 XKEYSCORE training document covering the Phone Number Extractor capability, which automatically parses telephone numbers from multiple locations within intercepted internet traffic. The document provides both technical explanation and operational examples of the tool in use.\n\nThe document identifies five distinct locations where phone numbers appear in intercepted traffic: website body content such as contact pages and forum posts; email and document signature blocks described as \"selector-rich environments\" containing names, titles, emails and phone numbers simultaneously; HTTP GET requests where mobile phone numbers leak as metadata through GPRS headers; HTTP POST submissions where users type phone numbers into web forms or email replies; and converged DNR/DNI collection where mobile identifiers like IMSI numbers appear alongside internet activity.\n\nThe operational examples are particularly revealing. One query targets Iranian Islamic Revolutionary Guard Corps phone numbers by searching web traffic between the US and Iran on port 80, returning a classified ad page in Farsi selling a used IBM laptop with a redacted Tehran telephone number. A second query targets a \"possible Lebanese Hizb procurement front company\" through signature block extraction, returning a fax number from correspondence between a development manager in Lebanon and a US server discussing construction work including marble and bathroom renovations — illustrating the collection of entirely mundane business communications in the process of targeting. A third example shows Iranian mobile phone web browsing collected through a Nokia WAP gateway operated by MTN Irancell, with the phone's MSISDN leaking in the HTTP headers. A fourth shows an Iranian user composing a Gmail message that includes a mobile number and Skype ID in the body, collected as an HTTP POST.\n\nThe converged collection section demonstrates how Yahoo account activity can be linked to a Pakistani Mobilink IMSI number, with multiple IMSI events logged over a few minutes showing real-time mobile internet activity tracking in Pakistan.",
"tags": [
"DNI",
"DNR",
"GPRS",
"IMSI",
"mobile surveillance",
"HTTP interception",
"signature blocks",
"IRGC",
"Mobilink",
"MTN Irancell",
"Nokia",
"convergence",
"selectors",
"Gmail",
"metadata leakage",
"mobile HTTP",
"phone numbers",
"training",
"internet surveillance",
"cookie tracking"
],
"document": {
"creator": "NSA",
"date_created": "2009-10",
"classification": [
"TOP SECRET",
"COMINT"
],
"dissemination": [
"REL TO USA, AUS, CAN, GBR, NZL"
],
"banner": "TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL//20291123",
"genre": "slides",
"programs": [
"XKEYSCORE",
"SSO"
],
"countries": [
"Iran",
"Lebanon",
"Pakistan"
],
"people": []
},
"publication": [
{
"publisher": "The Intercept",
"date_published": "2015-07-01",
"title": "XKEYSCORE: NSA’s Google for the World’s Private Communications",
"link": "https://theintercept.com/2015/07/01/nsas-google-worlds-private-communications/",
"reporters": [
"Marquis-Boire, Morgan",
"Greenwald, Glenn",
"Lee, Micah"
],
"contributors": [],
"doc_source": "https://theintercept.com/document/2015/07/01/phone-number-extractor/",
"doc_url": "https://s3.documentcloud.org/documents/2116161/phone-number-extractor.pdf"
}
],
"pdf_sha256": "18ba16002435f86b3c35e3f9a4c118dc58d919acb1cb87916bcaa70a558cfe4a",
"pages": 20
}

View file

@ -0,0 +1,476 @@
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL//20291123
# XKEYSCORE
# Phone Number Extractor
October 2009
Derived From: NSA/CSSM 1-52
Dated: 20070108
Declassify On: 20291123
DERIVED FROM: NSA/CSSM 1-52
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL//20291123
08
---
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL
## Where are Phone Numbers seen in DNI?
* Phone Numbers are located in MANY parts of DNI traffic
* "Contact Us" parts of web pages
* Signature Lines
* Address Books
* "Leaked" as METADATA in Mobile HTTP traffic
* Collected as converged data from GPRS/CDMA/WLL traffic
* Collected in signaling of VOIP traffic
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL
---
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL
## Phone Numbers in "Content"
* Looking inside the body of content, the Phone Number Extractor Looks for:
* Telephony-related terms in the body of traffic and parses out any digits after that
* Ex: "Tel:" or "Mobile" or "Fax" or " "
* Note that all punctuation is removed.
* i.e. (92) 928.555-555 becomes 92928555555
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL
---
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL
## Phone Numbers on Websites
* Many times phone numbers are in the body of a website
* "Contact-Us"
* Craigslist-like websites listing items for sale
* Forums, etc...
* Traffic can be TO or FROM Port 80
```
From Port 3434 (client)
"Reply: Contact Me @ 00-91-123456"
POST to the Web server
To Port 80 (Server)
To Port 3434* (client)
"For more information, contact...."
HTTP Response
From Port 80 (server)
```
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL
---
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL
## Normalization problems
* When a phone number is in the "body" of traffic, like a signature block or a "contact us" line on a webpage, it **doesn't have to be normalized**.
* XKS will extract the number exactly how it appears (minus punctuation and leading 0's) which can create problems.
* Look what happens to the '0' happen here:
```
Best Regards,
[REDACTED]
[REDACTED] telephone
[REDACTED] mobile
```
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL
---
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL
## Phone Numbers on Websites
```
Search: Phone Number Extractor
Query Name: IRGC
Justification: Iranian Phone numbers for IRGC Recent Justifica
Additional Justification:
Query
Miranda Number:
Datetime: 3 Days Start: 2009-10-03 00:00 Stop
Phone Number: [REDACTED]
Port: 80 From
Port: To
Country: From
Country: IR To
```
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL
---
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL
## Phone Numbers on Websites
Results
| Phone Number | Highlights | Number Type | Fm Countr | Fm Port | To Country | To Port |
|--------------|------------|-------------|-----------|---------|------------|---------|
| [REDACTED] | | telephone | US | 80 | IR | 4179 |
```
Send to: Download Session ▼ | Mode: Full Session | Options ▼ | Search Content: Enter text to search
۸۷/۹/۲۱
Laptop PII
PII MMX- Ram 196-Hard 30GB-CDRom دارای باتری سالم و در حد نو و دارای سیستم عامل Windows XPIBM 210000 ... ساخت ژاپن
[REDACTED] تهران تلفن:
۸۷/۹/۲۱
آکبند با یک سال گارانتی ارتاک 500 Dell
Farsi: "TEL"
```
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL
---
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL
## Phone Numbers in SIG Blocks
* Signature lines are SELECTOR-RICH environments (Emails, phones, names, titles, etc..)
* Many SIG blocks have extraneous characters/numbers
* XKS ignores dashes, parenthesis, etc..
* XKS only parses out the numbers after
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL
---
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL
## Phone Numbers in SIG Blocks
```
Search: Phone Number Extractor
Query Name: [REDACTED]
Justification: possible Lebanese hizb Procurement front company Recent Justificatio
Query
Additional Justification:
Miranda Number:
Datetime: 3 Days Start: 2009-10-03 00:00 Stop:
Phone Number: [REDACTED]
```
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL
---
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL
## Phone Numbers in SIG Blocks
Results
| State | ID | Phone Number | Highlights | Number Type | Fm Countr | Fm Port | To Country | To Port |
|-------|------|--------------|------------|-------------|-----------|---------|------------|---------|
| | 1640 | [REDACTED] | | fax | US | 80 | LB | 2 |
| otation | From IP | To IP | From Port | To Port | Protocol |
|------------|-------------------------------|-------------------------|-----------|---------|----------|
| OOOOMOOOO | 209[REDACTED] (United States) | 85.[REDACTED] (Lebanon) | 80 | 28678 | TCP |
```
nts (11) Meta (11)
Send to: Download Session ▼ | Mode: Full Session | Options ▼ | Search Content: Enter text to search
deduct from the price? Vo to be submitted by contractor taking into consideration any abo
related to works already executed + submit separately offer for marble to be supplied by
self
Ø I would like to change the ceramic tiles for the two other bathrooms. What is the
m2 I need to buy and how much you will deduct from the price? Under assessment by contrac
into consideration any abortive works related to works already executed.
Ø Master Bedroom bathroom, I would like to make it bigger and to cahnge the locati
of the Toilet Seat + have doubel sinks.
As at this stage all end-user's requests are clear, we kindly ask you to give the releval
maximum within a couple of days.
Thanks and Best regards
[REDACTED]
Development Manager
[REDACTED]
Tel: [REDACTED]
Fax: [REDACTED]
You can view our new projects on
[REDACTED]
```
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL
---
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL
## Phone Numbers in HTTP GETs
* HTTP GET Requests contain many "leaked" phone numbers from the providers
* GPRS activity commonly seen with DNR selectors
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL
---
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL
## Phone Numbers in HTTP GETs
```
Search: Phone Number Extractor
Query Name: IRWEB
Justification: Iranian web browsing from mob phone Recent Justif
Additional Justification:
Query
Miranda Number:
Datetime: 3 Days Start: 2009-10-03 00:00 S
Phone Number: [REDACTED]
Port: From
Port: 80 To
Country: IR From
```
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL
---
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL
## Phone Numbers in HTTP GETs
Results
| Phone Number | Highlights | Number Type | Fm Countr | Fm Port | To Country | To Port |
|--------------|------------|-------------|-----------|---------|------------|---------|
| [REDACTED] | | telephone | IR | 57875 | US | 80 |
| [REDACTED] | | telephone | IR | 57875 | US | 80 |
```
Send to: Download Session ▼ | Mode: Full Session | Options ▼ | Search Content: Enter text to search
AUTO FORMATTER: app_id= unknown/port80/http_www Viewer= ASCII format
2.2.1 Profile/MIDP-2.0 Configuration/CLDC-1.1
accept-application: x-wap-application:wml.ua,x-wap-application:mms.ua
Content-length: 0
Via: WTP/1.1 twwap7.mtnirancell.ir (Nokia WAP Gateway 4.1/CD20/4.1.113)
X-Network-info: GPRS, [REDACTED] unsecured
X-Nokia-msisdn: [REDACTED]
X-Nokia-CONNECTION_MODE: TCP
X-Nokia-BEARER: GPRS
X-Nokia-GATEWAY_ID: NWG/4.1/Build113
x-nokia.wia.accept.original: application/xhtml+xml,text/html,application/vnd.wa
Connection: close
```
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL
---
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL
## Phone Numbers in HTTP POSTs
* Many times a phone number is submitted in an HTTP "POST" session
* If a person fills in a form or replies to an email, the information in the body will be collected
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL
---
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL
## Phone Numbers in HTTP POSTs
```
Fields ▾ Advanced Features▾ Show Hidden Search Fields Clear Search Values Reload Last Search Values
Search: Phone Number Extractor
Query Name: iranbrowsing
Justification: web browsing from poss irgc Recent Justifications
Additional Justification:
Query
Miranda Number:
Datetime: 2 Weeks Start: 2009-09-24 00:00 Stop: 20
Phone Number: [REDACTED]
Port: From
Port: 80 To
Country: IR From
```
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL
---
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL
## Phone Numbers in HTTP POSTs
Results
| Phone Number | Highlights | Number Type | Fm Countr | Fm Port | To Country | To Port |
|--------------|------------|-------------|-----------|---------|------------|---------|
| [REDACTED] | | mobile | IR | 3511 | US | 80 |
| From IP | To IP | From Port | To Port | Protocol | Length |
|----------------------|-------------------------------|-----------|---------|----------|--------|
| 92.[REDACTED] (Iran) | 209[REDACTED] (United States) | 3511 | 80 | TCP | 13476 |
```
rments (2)
d to Download Session ▾ | Mode: Full Session | Options ▾ | Search Content: Enter text to search
POST /mail/?ui=2&ik=367371b1d8&at=xn3j30ni9gjyfueofsjzpxq6ubnbom&view=up&act=sd&jsid=p1revt7
Host: mail.google.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firef
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: fa
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded;charset
Referer: http://mail.google.com/mail/?ui=2&view=js&namVmMKYU.en.&am=1H1n0yYGL2
Cookie: S=gmail=D8-U_bh5VJXMxnqp5vUunA: gmproxy=Q5n_Xd7qeTw-95daj8yNMA; GX=DQAAAHoAAABcX4IyR
Pragma: no-cache
Cache-Control: no-cache
to=[REDACTED]&cc=&bcc=&subject=Re%3A%2
No Phone Number in the POST Metadata
```
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL
---
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL
## Phone Numbers in HTTP POSTs
Results
| Phone Number | Highlights | Number Type | Fm Countr | Fm Port | To Country | To Port |
|--------------|------------|-------------|-----------|---------|------------|---------|
| [REDACTED] | | mobile | IR | 3511 | US | 80 |
```
Session | Header (3) | Meta (10) | Attachments (2)
Formatter: AUTO
Send to: Download Session Mode:
Quick Clicks
Session
Attachments
web
html
unknown_152.x-www-form-
unknown
text
document_body.email_0.txt
One-Click Searches
Find opposite side of session
92[REDACTED] 3511 ->
209.[REDACTED]:80
Find traffic on
209[REDACTED]
unknown_152. ATTE
Virus scan results
Using HTML formatter
2009/10/3
Thanks Dear Hubert,
I tryed to call from Here, But is very Difficult to Call UK from Here.
Could pls. Give my Contact or Skpye to Him to Call me urgently:
Skype: [REDACTED]
Mobile: [REDACTED]
The phone number was in the body of the POST (i.e. a reply to an email)
```
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL
---
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL
## Mobile DNI
* Mobile DNI Collect comes in two main types:
```
Convergence of DNR & DNI selectors!
Mostly from F6 collection
Most cases, needs to be "near" the infrastructure
Gateway
Internet
Looks like regular DNI but with "hints" that the source is a cell phone
Collection could be F6, FORNSAT, SSO, FISA
```
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL
---
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL
## Mobile DNI: HTTP Activity
* HTTP activity comes in two types:
```
"Hints" of DNR origins
Public (proxy) IP addresses
website.com Server
Convergence of DNR & DNI selectors!
Usually private IP addresses
Gateway
```
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL
---
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL
## Phone Numbers From Converged Collection
| USER_A | ACTIVITY | USER_B | COOKIE | ACTIVE_USER | ACTIVE_USER_ |
|-------------------|----------------------|------------------|------------------|-------------------|----------------|
| [REDACTED]<yahoo> | seen with machine ID | [REDACTED]<IMSI> | [REDACTED]<IMSI> | [REDACTED]<yahoo> | 202.[REDACTED] |
```
Query
Phone Number: [REDACTED]
```
| Datetime | Datetime End | Phone Number | Number Type | Country Code | Area |
|---------------------|---------------------|--------------|-------------|--------------|------------|
| 2009-10-05 17:12:59 | 2009-10-05 17:12:59 | [REDACTED] | imsi | pk | Mobilink |
| 2009-10-05 17:13:49 | 2009-10-05 17:13:55 | [REDACTED] | imsi | pk | Mobilink |
| 2009-10-05 17:13:11 | 2009-10-05 17:13:11 | [REDACTED] | imsi | pk | Mobilink |
| 16:07 | 2009-10-05 17:16:07 | [REDACTED] | imsi | pk | Mobilink |
| 15:16 | 2009-10-05 17:15:18 | [REDACTED] | imsi | pk | Mobilink |
| 2009-10-05 17:16:17 | 2009-10-05 17:16:17 | [REDACTED] | imsi | pk | Mobilink |
| 2009-10-05 17:18:28 | 2009-10-05 17:18:28 | [REDACTED] | imsi | pk | Mobilink |
| 2009-10-05 17:18:28 | 2009-10-05 17:18:28 | [REDACTED] | imsi | pk | Mobilink |
| 2009-10-05 17:19:11 | 2009-10-05 17:19:18 | [REDACTED] | imsi | pk | Mobilink |
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL