protecting your apis - akamai...protecting your apis with api gateway and kona site defender....

41

Upload: others

Post on 22-May-2020

21 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML
Page 2: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML

Protecting your APIsWith API Gateway and Kona Site Defender

Page 3: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML

Kirsten HunterAPI Evangelist

5 years at Akamai10 years working with APIsPassionate about developer experience

Page 4: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML

Protection from adversaries trying to exfiltrate data or perform volumetric DDoS attacks

GovernanceAPI Gateway

Ensure API consumers behave

Delivery

ION

Scalability you won't outgrow

SecurityKSD & Bot Manager Premier

Provide consistency of experience to more users with less infrastructure.

Protect the enterprise from attacks prior to invoking anything in a trusted zone.

Enforce runtime policies to drive consumption of business assets securely and easily.

Akamai’s API Management Platform

Page 5: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML

APIs are a prime targetHackers are constantly after your data

Page 6: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML
Page 7: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML

API Landscape

Page 8: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML
Page 9: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML
Page 10: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML
Page 11: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML

API

Web

Page 12: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML

2/3

1/3

Page 13: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML

4X morecredential stuffing attacks on APIs

Attack Vectors

Page 14: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML

Threats

Page 15: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML

The 4 Areas Where Your APIs are the Most Vulnerable

1 DDoS Attacks

3 SQL Injection Attacks

2 ParameterAttacks

4 Credential Stuffing Attacks

Page 16: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML

Distributed Denial of Service (DDoS) Attacks

Traditional request-rate-based controls are hard

Positive security / Input validation is hard

Understanding who and what to trust in a SaaS

world is hard

Source: API & Security Trends for 2018

Page 17: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML

Solution: Kona DDoS Defender

Page 18: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML

Parameter AttacksAn important step for any resilient API implementation is to sanitize all incoming data to confirm that it is valid and will not cause harm.

http://www.estore.com/items/items.asp?admin=true&show_all=true

Page 19: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML

Solution: Kona Site Defender

• Positive and negative security models• Customers can define which types of requests and calls are allowed• Inspects the parameters of RESTful APIs against a whitelist of expected

values• Inspects JSON body and path parameters for risky content

Page 20: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML

SQL Injection Attacks

SQL query:

sql_query= "

SELECT ItemName, ItemDescription

FROM Item

WHERE ItemNumber = "& Request.QueryString("ItemID")

Normal request:http://www.estore.com/items/items.asp?itemid=999

SQL Injection:http://www.estore.com/items/items.asp?itemid=999;DROP TABLE Users

76%of attacks are SQL injections

Since your API is a programmatic interface, it’s important to guard against SQL injection or other attempts to convince your system to behave abnormally.

The vast majority of API attacks are SQL injection.

Page 21: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML

Solution: Akamai WAF• Akamai WAF provides extensive protection against

injection attacks with existing, out-of-the-box rules.• Virtual patching can be automated and integrated

Client Reputation helps identify and block injection-based attacks from highly active bad actors

• Injection-based attacks can also be further analyzed by the WAF with a Penalty Box Alert Mode.

Page 22: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML

4Credential StuffingCredential Attacks

credential stuffing attemptsin 8 months

Source: Akamai SOTI 1Q 2019(Observed on Akamai Intelligent Edge Platform, 2018

Page 23: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML

4Solution: API Gateway and Kona Site Defender

credential stuffing attemptsin 8 months

Page 24: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML

Launchpad Mission

Protect Your Site from Severe Security Threatsbased on the OWASP Top 10

Page 25: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML

How it works

Page 26: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML

API Gateway and Kona Site Defender

Page 27: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML

Request Flow - With Akamai

Page 28: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML

Prevent unauthorized access

- API key-based authentication

- JSON Web Token validation

- Secure API traffic with OAuth 2.0

- Enforce business SLAs with global Quota limits

- Throttle traffic to protect infrastructure (beta)

- Identity Management (via Akamai Identity Cloud)

Mitigate Security & Operational Risk

API Gateway

Page 29: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML

Scalability- Gateway not locked into a DC or region- Eliminate time penalties of auto-scaling- No costly replication of infrastructure in multiple geographies- No need to over-provision servers for biggest traffic day - No single point of failure

Response Caching- Cache RESTful responses at the edge to skip requests entirely- GraphQL full query caching

CORS (Cross Origin Resource Sharing)- Serve preflight headers from the edge to save round-trip and boost

AJAX call performance

Performance & Offload

API Gateway

Page 30: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML

Administrative APIs- Integrate the Gateway into your CI/CD pipeline- API catalog: developer.akamai.com/api

Command Line Interface- Control of common Gateway functions without writing a

line of code- Script or automate repetitive or common tasks without

writing to API

Swagger/RAML Import- Use API definitions (Swagger, RAML, OpenAPI 3) already

created to quickly and easily onboard APIs

DeveloperAgility

API Gateway

Page 31: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML

Oauth authentication

credential stuffing attemptsin 8 months

Client

Resource Owner

Authorization Server(Akamai)

Resource Server

Authorization Request

Authorization Grant

Access Token ( & Refresh Token)

Authorization Grant

Access Token

Protected Resource

IdP

Page 32: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML

JWT Authentication

credential stuffing attemptsin 8 months

Page 33: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML

Throttling

credential stuffing attemptsin 8 months

● Critical component of API scalability ● Ensures fairness of access● Control request rate per second to

protect backend infrastructure● Traffic is denied at Edge – does not

transit to origin● 3 levels of throttling:

○ API key ○ Endpoint/resource ○ HTTP method

● Not confined to a server, DC, or region

Page 34: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML

API Gateway and GraphQL

credential stuffing attemptsin 8 months

Page 35: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML

Demo

Page 36: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML

Kona Site Defender features

credential stuffing attemptsin 8 months

• Delivers the lowest false positives and false negatives to ensure access to legitimate users while keeping out threats.

• Continuously updates WAF rules based on 130 TB of threat data every day

• Kona Site Defender detection logic is so advanced that it often catches zero-day attacks.

• Protects applications regardless of location• Realize a unified view of security posture• A user-friendly online portal based on a decade of real-world

experience.

Page 37: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML

Kona Site Defender

credential stuffing attemptsin 8 months

Page 38: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML

Application Security API and CLI

credential stuffing attemptsin 8 months

Page 39: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML

Summary

credential stuffing attemptsin 8 months

• APIs are heavily targeted by hackers• Threats come in many flavors• API management can help immensely• Authentication is key• Move your API protection to the edge to increase safety and

performance

Page 40: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML

Thank you

Page 41: Protecting your APIs - Akamai...Protecting your APIs With API Gateway and Kona Site Defender. Kirsten Hunter API Evangelist 5 years at Akamai. 10 years working with APIs. ... Swagger/RAML