i got 99 problems but your hid ain’t one…

48
I Got 99 Problems But Your HID Ain’t One… Jake Liefer – Senior Consultant – Security Risk Advisors Dan Astor – Consultant – Security Risk Advisors

Upload: others

Post on 05-May-2022

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: I Got 99 Problems But Your HID Ain’t One…

I Got 99 Problems But Your HID Ain’t

One…

Jake Liefer – Senior Consultant – Security Risk Advisors

Dan Astor – Consultant – Security Risk Advisors

Page 2: I Got 99 Problems But Your HID Ain’t One…

Jake Liefer

• Physical Testing – Badge Cloning Development

• Internal, External, Webapp, Mobile, Spear Phishing

Dan Astor

• Physical Testing – Social Engineering

• Internal, External, Webapp, Spear Phishing

The Dream Team & Project–

• 1 Company - 2 months - 15 locations – Never caught.

• Access to all locations, except for 1.

• Datacenters, Corporate Campuses, Skyscrapers,

Shared Offices

Our Backgrounds

Page 3: I Got 99 Problems But Your HID Ain’t One…

- Online Recon Methods

- Social Engineering

- Low Frequency Badge Cloning

- High Frequency Badge Cloning

Today’s Topics

Page 4: I Got 99 Problems But Your HID Ain’t One…

Think Like An

Employee, Not A Ninja

Page 5: I Got 99 Problems But Your HID Ain’t One…

Location Categories

Page 6: I Got 99 Problems But Your HID Ain’t One…

Site Location Types

Remote

Infrastructure

Retail

Location

Shared Office

Space

Dedicated

Space

Secured

Campus

Page 7: I Got 99 Problems But Your HID Ain’t One…

Remote Site Recon –

Image Recon

Page 8: I Got 99 Problems But Your HID Ain’t One…

Location Recon: Image Recon• Google Streetview – Useful for larger locations to identify perimeter

security weaknesses, access controls, and entrances.

Building entrance and badge reader. Hey that’s here!

Page 9: I Got 99 Problems But Your HID Ain’t One…

Location Recon: Image Recon• Google Streetview – Useful for larger locations to identify perimeter

security weaknesses, access controls, and entrances.

Page 10: I Got 99 Problems But Your HID Ain’t One…

Location Recon: Image Recon• Google Streetview – Inside views now as well, denoted by orange or

blue dot on StreetView

Google Streetview inside data center.

Page 11: I Got 99 Problems But Your HID Ain’t One…

Location Recon: Image Recon• Google Satellite – Useful for suburban location to identify entrances,

some locations only offer overhead views.

Identified Building Entrances

Page 12: I Got 99 Problems But Your HID Ain’t One…

Location Recon: Image Recon• Don’t Discount Bing – Identify entrances via birds eye view

Same location as previous slide, but using Bing’s Bird Eye View

Page 13: I Got 99 Problems But Your HID Ain’t One…

Remote Site Recon –

Google Image Hacking

Page 14: I Got 99 Problems But Your HID Ain’t One…

Google Image Searching• Google Search – Search the building’s address, company name + city,

Building name + lobby, etc.

Building lobby entrance identified via google search for building name + lobby

Page 15: I Got 99 Problems But Your HID Ain’t One…

Google Image Search• Google Search – Search the building’s address, company name + city,

Building name + lobby, etc.

Detailed map of secured campus facility identified from Google searching

Page 16: I Got 99 Problems But Your HID Ain’t One…

Identify Employees

• Utilize social

media

– LinkedIn

– Facebook

– Jigsaw

– FourSquare

• Company

Websites

Page 17: I Got 99 Problems But Your HID Ain’t One…

Identify Employee Badges

• Search Engines

– Google, Bing, etc…

• Social Media

– Instagram

Page 18: I Got 99 Problems But Your HID Ain’t One…

Create Replica Badges

• Design a replica badge

using Photoshop

• Purchase a real badge

printer

– $$$$$$

• FedEx Office…

– $3

– Place in front of a blank

badge in a sleeve…

Page 19: I Got 99 Problems But Your HID Ain’t One…

Getting In From A Phone Call

Use identified employees for:

• Calling up corporate scheduling– Book yourself a conference

room

• Calling up the security desk– Ask to be put on the guest list

• Calling up the receptionist– Say your from another office

and need to use a conference

room for network access…

• GET CREATIVE!!!

Page 20: I Got 99 Problems But Your HID Ain’t One…

Look For Events!!!

Try to get inside the building

• Search for public events

on search engines and

register

– May cost some $$

• Blood Drives???

– Sure why not…

• Networking events and

workshops

• Hint – Check out PRSA,

EventBrite

Page 21: I Got 99 Problems But Your HID Ain’t One…

Wifi Recon

Page 22: I Got 99 Problems But Your HID Ain’t One…

Crowdsourced Wardriving• Wigle – Search for wireless networks and zoom in on locations to

identify wireless networks.

Page 23: I Got 99 Problems But Your HID Ain’t One…

Badge Cloning

Page 24: I Got 99 Problems But Your HID Ain’t One…

Badge Cloning

Technology Market Share Encryption Cloneable

Low Frequency HID

(125khz)

>80% None Yes

Low Frequency –

Other 125khz

~5% None Probably

Low Frequency

134khz

? None Not yet encountered

High Frequency HID

iClass (13mhz)

~10% 3DES Probably

High Frequency –

Other (13mhz)

? Varies Not yet encountered

Page 25: I Got 99 Problems But Your HID Ain’t One…

Identify the Badge Reader – Low Frequency HID

Page 26: I Got 99 Problems But Your HID Ain’t One…

Identify the Badge Reader – Low Frequency Indala

Page 27: I Got 99 Problems But Your HID Ain’t One…

Identify the Badge Reader – High Frequency HID iClass

Page 28: I Got 99 Problems But Your HID Ain’t One…

Identify the Badge Reader – Misc.

ioProx

ioProx

CotagCasi

GE AWID

Page 29: I Got 99 Problems But Your HID Ain’t One…

Our Cloning Equipment

Obtaining Badges -

Badge Reader

Best Covert Badge Reader: Bishop Fox’s

Blackhat / Defcon talk Live Free or RFID Hard

Cloning Badges - Proxmark

T5557

Rewriteable

Card

Page 30: I Got 99 Problems But Your HID Ain’t One…

The Strategy – Cell Trance

Source:

http://www.boston.com/bostonglobe/ideas/brainiac/2013/02/the_digital_ges.

html

Page 31: I Got 99 Problems But Your HID Ain’t One…

Standard Badge Format

Facility Code – Same for all cards at facility

Card Code – Unique for each badge, typically

sequential

Example: Facility Code – 613 Card Code –

39746

Page 32: I Got 99 Problems But Your HID Ain’t One…

Process Flow

Obtain

Badges

Obtain

Badges

Read

Cards.txt

Read

Cards.txt

Clone

Badge

Clone

Badge

Confirm

Badge

Confirm

BadgeProfitProfit

Page 33: I Got 99 Problems But Your HID Ain’t One…

Hid iClass

OpenPCB.org - HID iClass

Demystified

Proxclone.com – Thanks Carl!

Page 34: I Got 99 Problems But Your HID Ain’t One…
Page 35: I Got 99 Problems But Your HID Ain’t One…

HID iClass Encryption

Low Frequency

HID iClass

FC: 803

CC: 13692

FC: 803

CC: 13692

FC: 803

CC: 13692

FC: 2132321

CC: 136213123

Page 36: I Got 99 Problems But Your HID Ain’t One…

Key: 987654321

HID iClass Encryption – The Problem

Key: 987654321 Key: 987654321 Key: 987654321

Key: 987654321

eBay’d Badge

Reader

Page 37: I Got 99 Problems But Your HID Ain’t One…

HID Legacy iClass

iClass (High Frequency) + Prox (Low Frequency) Badge

Page 38: I Got 99 Problems But Your HID Ain’t One…

HID iClass Cloning

FC: 803

CC: 13692

FC: 803

CC: 13692

FC: 2132321

CC: 136213123

FC: 2132321

CC: 136213123

Page 39: I Got 99 Problems But Your HID Ain’t One…

HID iClass Cloning

FC: 803

CC: 13692

FC: 2132321

CC: 136213123

FC: 2132321

CC: 136213123

FC: 803

CC: 13692

Cards.txt

Page 40: I Got 99 Problems But Your HID Ain’t One…

HID iClass Prep

• Install outdated software

• Old Software To Write: CardMan_Synchronous_API_V1_1_1_4.exe

CardMan was a software library provided to developers by HID to assist in understanding

iClass cards

• Old software for Omnikey: OMNIKEY5x21_V1_2_0_14.exe

Page 41: I Got 99 Problems But Your HID Ain’t One…

Process Flow – High Frequency

Obtain BadgesObtain Badges

Read Cards.txt

Read Cards.txt

Encrypt Card InfoEncrypt

Card InfoWrite BadgeWrite Badge

ProfitProfit

Page 42: I Got 99 Problems But Your HID Ain’t One…

Upcoming

Projects

Page 43: I Got 99 Problems But Your HID Ain’t One…

Cloning a badge in ContactlessDemo

Prep: Encrypt your badge info using the extracted 3DES encryption key.

• Select the card: 80A60000

• Load the encryption key:808200F008XXXXXXXXXXXXXXXX

• Authenticate to the card: 808800F0

• Read Block 7: 80B0000700

• Write Block 7: 80D60007083b9ba12046fdb24

• Read Block 7: 80B0000700

• CLONED.

Page 44: I Got 99 Problems But Your HID Ain’t One…

Mitigation Strategies

• Two-factor authentication (Pin pad least intrusive)

• HID iClass with unique keys

• Guards verify employees via company directory.

Page 45: I Got 99 Problems But Your HID Ain’t One…

Upcoming

Projects

Page 46: I Got 99 Problems But Your HID Ain’t One…

On-Site Badge Cloner

Page 47: I Got 99 Problems But Your HID Ain’t One…

On-Site Badge Cloner

Page 48: I Got 99 Problems But Your HID Ain’t One…

Questions?

Contact:[email protected]

[email protected]

@SecRisk