all your face are belong to us - maggi.cc€¦ · all your face are belong to us breaking...

65
ALL YOUR FACE ARE BELONG TO US BREAKING FACEBOOK'S SOCIAL AUTHENTICATION FEDERICO MAGGI NECSTLAB, POLITECNICO DI MILANO

Upload: others

Post on 24-Sep-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

ALL YOUR FACEARE BELONG TO US

BREAKING FACEBOOK'S SOCIAL AUTHENTICATION

FEDERICO MAGGINECSTLAB, POLITECNICO DI MILANO

Page 2: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

ABOUT THE TITLE

JAPANESE-TO-ENGLISH TRANSLATION ERROR

EU EDITION OF "ZERO WING" CONSOLE GAME, 1991

BECAME AN INTERNET MEME, 2000

"All Your Face are Belong to Us"

Page 3: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

CATS:連邦政府軍のご協力により、君達の基地は、全てCATSがいただいた。

CATS: All your base are belong to us.

CATS: With the cooperation of Federation Forces,all of your bases now belong to us.

Page 4: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano
Page 5: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

JOINT WORK

MARCO LANCINIFEDERICO MAGGISTEFANO ZANERO

POLITECNICO DI MILANO, ITALY

JASON POLAKISSOTIRIS IOANNIDIS

FORTH, GREECEGEORGIOS KONTAXISANGELOS KEROMYTIS

COLUMBIA UNIVERSITY, US

ACCEPTED AT ACSAC 2012

Page 6: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

ONLINE SOCIAL NETWORKS

Page 7: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

ONLINE SOCIAL NETWORKS (2013)

FacebookTencent QQ

Google+Twitter

LinkedinTencent Qzone

Sina WeiboWindows Live

Instagram

Registered Users Active Users1+ billion 1 billion784+ million 712 million500+ million 235 million500+ million 200+ million200+ million 160 million597+ million 150 million400+ million 100+ million100 million 100 million100+ million 100 million

Wikipedia"List of virtual communities with more than 100 million active users"

Page 8: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

ONLINE SOCIAL NETWORKS

FACEBOOK REACHED 1+ BILLION ACTIVE USERS

1/7th OF THE WORLD POPULATION

MASSIVE USER BASE

APPEALING TARGET FOR ONLINE CRIME

Page 9: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

ONLINE SOCIAL NETWORKS ABUSED

IDENTITY THEFT

SPAMMING

PHISHING

SELLING CREDIT CARDS SELLING STOLEN ACCOUNTS

Page 10: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

MALICIOUS FACEBOOK ACCOUNTS

Gao et al."Detecting and Characterizing Social Spam Campaigns"

ACM Internet Measurement Conference, 2010

97% ARE REAL, COMPROMISED ACCOUNTS

Page 11: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

MAIN CAUSES OF STOLEN ACCOUNTS

INFORMATION-STEALING MALWARE

SOCIAL ENGINEERING

PHISHING

Page 12: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

KEEPING STOLEN ACCOUNTS SAFE

MULTI-FACTOR AUTHENTICATION

SOMETHING YOU KNOW: A PASSWORD

SOMETHING YOU HAVE: A TOKEN

Page 13: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

Paul Applegatehttp://www.flickr.com/photos/mrapplegate/1287965486/

Page 14: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

DRAWBACKS

LOW ACCEPTANCE

CUMBERSOME

CAN BE LOST

Page 15: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

FACEBOOK'S APPROACH

SOMETHING YOU HAVE (TOKEN)

SOMEONE YOU KNOW (FRIEND)

Page 16: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano
Page 17: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

"A CONTINUED COMMITMENT TO SECURITY"

https://www.facebook.com/blog/blog.php?post=486790652130

Page 18: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano
Page 19: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

WHEN DOES IT COME INTO PLAY?

GEO LOCATION THAT YOU NEVER ACCESSED FROM

FIRST TIME YOU USE A COMPUTER

Page 20: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

HOW DOES IT WORK?

7 FRIENDS TO IDENTIFY

3 PHOTOS PER FRIEND

6 SUGGESTIONS

2 MISTAKES

FRIENDS PHOTOS TAGSGROUND TRUTH

Page 21: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

ADVANTAGES OF SOCIAL AUTHENTICATION

PEOPLE ACCUSTOMED TO TAGGING FRIENDS

MORE USER FRIENDLY THAN A TOKEN

LOOKS LIKE A GAME

Page 22: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

ADVERSARY MODEL

ANYONE OUTSIDE THE VICTIM'S SOCIAL CIRCLE

A STRANGER

CLOSE COMMUNITIES

CLOSE FRIENDS

FAMILY

Page 23: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

ASSUMPTION

THE ATTACKER CANNOT INFILTRATEINTO THE VICTIM'S SOCIAL CIRCLE

Page 24: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

SECURITY WEAKNESSES

5 FRIENDS TO IDENTIFY

3 PHOTOS PER FRIEND

6 SUGGESTIONS

2 MISTAKES

is information is publicly available to some degree.

Page 25: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

CAN AN ATTACKER BYPASSSOCIAL AUTHENTICATION

AUTOMATICALLY?

(#1 CASUAL ATTACKER)

Page 26: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

FRIENDS

Page 27: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

SECURITY WEAKNESSES TAKE 2

7 5 FRIENDS TO IDENTIFY3 PHOTOS PER FRIEND

6 SUGGESTIONS

2 MISTAKES

FRIENDS PHOTOS TAGSGROUND TRUTH

Page 28: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

PUBLIC FRIENDS LIST

47% OF USERS LEAVE THEIR FRIEND LIST PUBLIC

R. Dey at al.Facebook users have become much more private: A large-scale study.

IEEE Workshop on Security and Social Networking, 2012

"Are friend lists publicly reachable?"

Page 29: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

CAN AN ATTACKER BYPASSSOCIAL AUTHENTICATION

AUTOMATICALLY?

(#2 DETERMINED ATTACKER)

Page 30: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

ACCEPT BEFRIEND REQUESTS?

70% OF USERS ACCEPT BEFRIEND REQUESTS BLINDLY

D. Irani et al.Reverse social engineering attacks in online social networks.

DIMVA 2011

100%-47% = 53% OF USERS LEAVE THEIR FRIEND LIST PRIVATE

Page 31: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

47% OF USERS LEAVE THEIR FRIEND LIST PUBLIC

53% OF USERS LEAVE THEIR FRIEND LIST PRIVATE

70% OF USERS ACCEPT BEFRIEND REQUESTS BLINDLY

47% + 53% * 70%

84% OF THE USERS

MATH: FRIEND LIST REACHABILITY

Page 32: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

FRIENDS PHOTOS TAGSGROUND TRUTH84%

Page 33: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

PHOTOS

Page 34: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

PUBLIC PHOTOS: A CLOSER LOOK

71% OF THE USER LEAVE THEIR PHOTOS PUBLIC

We measured this on a sample of 236,752 Facebook users.

"Are photos publicly reachable?"

FRIENDS PHOTOS TAGSGROUND TRUTH

Page 35: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

71% OF THE USER LEAVE THEIR PHOTOS PUBLIC

29% OF USERS LEAVE THEIR PHOTOS PRIVATE

70% OF USERS ACCEPT BEFRIEND REQUESTS BLINDLY

84% * (71% + 29% * 70%)

77% OF THE USERS

MATH: PHOTO REACHABILITY

Page 36: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

FRIENDS PHOTOS TAGSGROUND TRUTH84% 77%

Page 37: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

TAGS

Page 38: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

PUBLIC TAGS

42% OF THE TAGS ARE REACHABLEPUBLIC TAGS + PRIVATE TAGS ON PUBLIC PHOTOS

We measured this on a sample of 236,752 Facebook users.

"Are tags publicly reachable?"

FRIENDS PHOTOS TAGSGROUND TRUTH

Page 39: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

FRIENDS PHOTOS TAGSGROUND TRUTH84% 77% 42%

Page 40: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

THE GUESS SPACE FORAN ATTACKER IS NARROW.

Page 41: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

COULD AN ATTACKERNARROW IT FURTHER?

Page 42: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

PHOTOS TAKE 2

Page 43: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

PUBLIC PHOTOS A CLOSER LOOK

82% OF PHOTOS IN SOCIAL AUTH. CONTAIN FACES

vs.

ONLY 69% OF PHOTOS CONTAIN FACES OVERALL

We measured this on a sample of 6,115 photos.

"Does Facebook select the photos for social auths?"

FRIENDS PHOTOS TAGSGROUND TRUTH

Page 44: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

FACEBOOK PICKSPHOTOS THAT CONTAIN FACES.

Page 45: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

FRIENDS PHOTOS TAGSGROUND TRUTH84% 77% 42%

82%

Page 46: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

PRACTICAL ATTACK STEP1

CRAWLING FRIENDS LIST OF THE VICTIM (1)

COLLECTING THEIR TAGGED PHOTOS (2)

FACE MODELING (3)

DATABASE OFFACE MODELS

Page 47: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

Who is "Mister X"?

NAME! FACE RECOGNITION PHOTO

SOCIAL AUTHENTICATION

PRACTICAL ATTACK STEP2

DATABASE OFFACE MODELS

Page 48: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

FACE MODELING AND RECOGNITION

what did we use?

Page 49: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano
Page 50: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

acquired by

Page 51: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

SO, AN ATTACKER COULD EVEN USE FACEBOOK'S OWN TECHNOLOGY TO

BYPASS ITS SOCIAL AUTHENTICATION

AH...THE IRONY

Page 52: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

EXPERIMENTAL EVALUATION

CASUAL ATTACKER

ONLY PUBLICLY AVAILABLE INFORMATION

NO BEFRIEND REQUESTS

Page 53: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

SUCCESS OF THE CASUAL ATTACKER

22% FULL SOLUTION

56% 1–2 GUESSES NEEDED

78% OVERALL (2 MISTAKES ALLOWED)

Page 54: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

WHEN THE CASUAL ATTACKER FAILS

25% NO FACES IN THE PHOTOS

50% UNRECOGNIZABLE FACE

25% NO FACE MODEL FOUND

Page 55: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano
Page 56: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

EXPERIMENTAL EVALUATION

DETERMINED ATTACKER

ACCESS TO 77% OF THE PHOTOS

EMULATED OFFLINE

Page 57: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

SUCCESS OF THE DETERMINED ATTACKER

FACES CRAWLED

30

90

120

MINIMUM SUCCESS RATE

42%

57%

100%

Page 58: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano
Page 59: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

SPEED OF THE DETERMINED ATTACKER

MAX TIME REQUIRED

100s

140s

150s

MINIMUM SUCCESS RATE

42%

57%

100%< TIMEOUT

Page 60: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano
Page 61: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

FACEBOOK RESPONSE

ACKNOWLEDGED OUR RESULTS

SOCIAL AUTH. MEANT AS A "WEAK" PROTECTION

INEFFECTIVE AGAINST TARGETED ATTACKS

USERS CAN USE LOGIN APPROVAL (WHO DOES IT?)

Page 62: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

QUICK REMEDIATIONS

OPT-IN LOGIN APPROVAL (USERS)

REMOVE SUGGESTIONS (FACEBOOK)

REDUCE TIMEOUT (FACEBOOK)

Page 63: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

RETHINKING SOCIAL AUTHENTICATION

PEOPLE CAN RECOGNIZE THEIR FRIENDS "LOOK"

USE PHOTOS WITH NO FACES

FACE RECOGNITION

Page 64: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

CONCLUSIONS

SOCIAL AUTH. INEFFECTIVE FOR 84% OF THE USERS

THREAT MODEL EXCLUDES OUR TARGETED ATTACK

CLOUD-BASED FACE-RECOGNITION MADE IT EASIER

SOCIAL AUTHENTICATION SHOULD BE REVISITED

Page 65: ALL YOUR FACE ARE BELONG TO US - maggi.cc€¦ · all your face are belong to us breaking facebook's social authentication federico maggi necstlab, politecnico di milano

FEDERICO MAGGI: @PHRETOR HTTP://MAGGI.CC

FACE

THANK YOU!