XKS Logos Embedded in Docs

Open PDF
Creating agency: NSA National Security Agency (US)
Document date: 2009
Pages: 2
Genre: manual
Banner:
Classification: TOP SECRET COMINT
Dissemination: REL TO USA, AUS, CAN, GBR, NZL

A TOP SECRET XKeyscore how-to written by a Booz Allen Hamilton consultant, explaining how analysts can track a document across the internet by the hash of a logo or image embedded inside it — extracting the 32-character hash of a company logo from an intercepted spreadsheet, then searching XKeyscore's document metadata for every other file containing that same image, revealing communications between people the analyst has never heard of.

Long Description:
This is a TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL XKeyscore technique guide authored by a consultant from Booz Allen Hamilton (unit ADET-E92), published by The Intercept as part of the XKeyscore document release. It is a short, practical tutorial demonstrating one specific capability referenced in the broader XKeyscore overview presentations: tracking documents by the hashes of images embedded inside them. The technique works in stages. When XKeyscore processes a document such as a Microsoft Office file or Outlook email, it parses out embedded images — logos, attachments and inline graphics — and treats each as a separate attachment. The worked example uses an intercepted financial spreadsheet ("NEW_DAILY_REPORTING_06.04.2009.xls") captured on 7 April 2009, containing a logo alongside deposit and cash figures. Opening the session's Attachments window reveals the document was decomposed into 21 separate attachments including JPEG, PNG and WMF images, XML metadata files, HTML fragments and document body text. Each extracted image is named with its hash — for example image-6a476b2cedccb34946f5e9c76103d0f2.png. The analyst takes the 32-character hash of the embedded image and pastes it into a Document Metadata search under the File/Embedded Image Hash field. Because every document containing that same image produces the same hash, this returns every other intercepted document containing the identical logo or graphic — even documents sent between people the analyst has no prior knowledge of. The guide notes this reveals "actual files that were sent to and from people you've never HEARD OF." The document includes a USSID-18 compliance warning specific to this technique: before submitting, the analyst must consider whether the logo could be used by Five Eyes-protected entities, since a common corporate or organisational logo could return large volumes of protected US or allied traffic. The suggested mitigation is ANDing the hash search with a country filter — the worked example uses Afghanistan (Country: AF) to constrain results to foreign traffic. The technique is significant because it enables tracking of documents and identification of associated persons purely through the visual content embedded in files, with no email address, name or other strong selector required. A shared letterhead, organisational logo or reused graphic becomes a fingerprint linking together everyone who handled a document.
Programs:
XKEYSCORE

People mentioned:
-

Countries:
Afghanistan

Tags:
Booz Allen Hamilton, hashes, embedded images, logo recognition, document metadata, document tracking, attachment extraction, image hash, target discovery, SIGDEV

Identifier:
xks-logos-embedded-in-docs

PDF SHA-256:
e2533e9af795afbf41176d68ec58b682c55e9ea1a686f38733ec9adbf4d886d0

TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL

[REDACTED]
Booz Allen | Hamilton
ADET-E92

Using XKS to find and search for logos embedded in documents

XKEYSCORE will parse out the logos inside of documents like MS Office and Outlook emails. If you're traffic hasn't aged of, load it into a session viewer and hopefully you'll see where there's a logo or attachment. See here, this spreadsheet has a logo in it.

DEPOSITS
ACTUAL
USD
CASH
CASH INSURANCE UNIT CASH ON PREMIS

(TS//SI//REL) XKEYSCORE takes that logo and calls it an attachment. Click on Attachments to see all of the attachments.

Datetime | Case Notation
2009-04-07 06:23:14 | E9DCK00900M0000

Session | Header (3) | Attachments (21) | Meta (18)
Formatter: AUTO | Send to: Downloa

(U//FOUO) In the Attachments window, look for ones with jpg or png.

image_summary_montage.jpeg unknown_884.plain document_body.1.bat unknown_882.plain image-f909de2e9589585d6dc03f3cB16f5ac1.wmf document_body.0.txt
new_daily_reporting_06.04.2009.1.xls_1.metadata.xml unknown_886.plain document_body.0_D.txt image-6a476b2cedccb34946f5e9c76103d0f2.png
NEW_DAILY_REPORTING_06.04.2009.1.xls unknown_887.disposition-notification unknown_883.html image-108cdf8c2afa1c1cc0584cc0875a14bc.png
document_body.1_D.txt image-1d999c6f11lc34ee070Bfad155ff5cf1.wmf document_body.0_1.txt document_body.3a39f1led1be7e419b94b521b04848fe.txt
new_daily_reporting_06.04.2009.1.xls_0.metadata.xml 1665040.jpg unknown_885.html

Derived From: NSA/CSSM 1-52
Dated: 20070108
Declassify On: 20340401
TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL

TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL

(U//FOUO) Notice the hash of the jpg

image-6a476b2cedccb34946f5e9c76103d0f2.png
Virus scan results
sing IMAGE formatter

(TS//SI//REL) Now you take the 32-character hash (e.g. 6a476b2cedccb34946f5e9c76103d0f2) and paste that into a Document Metadata search under the File/Embedded Image Hash field:

Search: Document Metadata

  Query Name: kmkeith_7
  Justification:
  File/Embedded Image Hash [fulltext]: 6a476b2cedccb34946f5e9c76103d0f2

(TS//SI//REL) Before you hit submit, you MUST think if the logo could be used by 5-EYES protected entities. It should go without saying, but take extra precaution if you think it could bring back 5-EYES traffic. What would you do to ensure it's foreign? Maybe AND that with a country?

File/Embedded Image Hash [fulltext]: 6a476b2cedccb34946f5e9c76103d0f2
Metadata Name:
Metadata Value [fulltext]:
IP Address: From
IP Address: To
Port: From
Port: To
Country: AF Either

(TS//SI//REL) Then hit submit and check your results. Your results MAY show you actual files that were sent to and from people you've never HEARD OF (how cool is that?)

Happy hunting..[REDACTED]

TOP SECRET//COMINT//REL TO USA, AUS, CAN, GBR, NZL