Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
JAWS Pankration 2024 - Achieve software supply ...
Search
Richard Fan
August 25, 2024
Technology
94
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
JAWS Pankration 2024 - Achieve software supply chain security using AWS Nitro Enclaves and GitHub Actions
Presented at JAWS Pankration 2024
Richard Fan
August 25, 2024
Transcript
20 slides
Achieve software supply chain security using AWS Nitro Enclaves and
GitHub Actions Richard Fan AWS Security Hero
Where does the software come from? Source Developers Build Package
Consumers Dependencies
How can things go wrong? Source Developers Build Package Consumers
Dependencies Unauthorized code change Compromised repository Build from compromised source code Compromised build process Using compromised dependency Modified package Compromised package store Downloading compromised package
What is SLSA • Supply-chain Levels for Software Artifacts •
Framework for software integrity • Build trust between software producer and consumer • Different levels of security assurance
SLSA Provenance Birth certificate of the software Software
Achieving SLSA on GitHub Actions
What is GitHub Actions • CI/CD platform • Workflow defined
within code repo • Run on GitHub- / self-hosted runner
GitHub Actions workflow • name: Build and sign EIF •
on: [push] • permissions: • contents: read • packages: write • id-token: write • attestations: write • jobs: • build_and_sign_artifact: • runs-on: ubuntu-latest • steps: # ... Build and push artifact • - name: GitHub attest • uses: actions/
[email protected]
Generate and sign provenance
GitHub Actions workflow
SLSA provenance Built by GitHub Actions Source code version Software
build
Where does the software come from? Source Developers Build Package
Consumers Dependencies SLSA
The software need to run somewhere Package Server End-users Deployment
Downloading compromised package Compromised deployment process Unauthorized deployment Unauthorized access Accessing compromised API endpoint
AWS Nitro Enclaves • Isolated virtual machine • Run on
EC2 instances • No admin access • No persistent storage • No external networking
Attestation document 1. Generate by Nitro Enclave at runtime 2.
Present attestation document to client app 3. Client validates the document 4. Client validates enclave fingerprint (PCRs)
Where does the software come from? Source Build Package Fingerprint
(PCRs) Enclave application Attest Enclave End-users Attestation document Verify with attested artifact Verify source code and build process
Demo … by yourself
Demo - How high (or low) is my salary? •
This is a difficult question • I want to know how much you earn • But I don’t want you to know how much I earn
Demo - How high is my salary enclave app •
Only tell you where is your salary ranked • Source code is open • Build process is open • Run on AWS Nitro Enclave • Proved by attestation document • Data encrypted between you and the enclave
Demo - How high is my salary enclave app •
https://github.com/richardfan1126/how-high-is-my-salary-enclave-app • Easy setup (Terraform)
How to find me Richard Fan
[email protected]
20 richardfan1126
More Decks by Richard Fan
See All by Richard Fan
Whose Fault When a Pentest Agent Attacks the Wrong Target
richardfan1126
0
52
You Don’t Need to Be a Hero to Contribute
richardfan1126
0
18
Understanding the Identity ofa CI Platform
richardfan1126
0
26
Preserving privacy on data collaboration with AWS Clean Rooms
richardfan1126
0
60
Achieve software supply chain security using AWS Nitro Enclaves and GitHub Actions
richardfan1126
0
200
When Data Collaboration Meets Privacy: Privacy-enhancing Technologies on AWS
richardfan1126
0
77
AWS Security Hub Central Configuration - An Easy way to monitor your Organization security posture
richardfan1126
0
90
Create your first AWS Nitro Enclaves application
richardfan1126
0
97
Building Security Data Lake
richardfan1126
0
36
Other Decks in Technology
See All in Technology
実測データからサービスの成長余力を測る。負荷シナリオ・テストデータ・限界値の設計
kazatohiei
0
170
業務の傍らで進める改善ループエンジニアリング
bengo4com
1
240
RAGの改善を速く回すための評価基盤
yosukeyoshida
6
3.6k
現地速報! Microsoft Ignite アップデートレポート
kasada
1
460
こんなに変わった! AWSネットワークの常識
shotashiratori
16
11k
kubellの最新データ分析環境
kubell_hr
2
260
AWS Client VPNの設定でハマったポイントとその過程での気づき
amarelo_n24
1
440
20261113_JAWS_Osaka
takuyay0ne
1
610
パスワードのない鍵で、 データを手元に置く
ginjihayashi
0
400
お風呂場をサーバルームにしよう
yusuke427
0
390
コピーオンライト型ファイルシステムと ランダム書き込み
sat
PRO
2
140
データから見る AI時代のエンジニア転職と採用
junya_okura
4
1.3k
Featured
See All Featured
The Art of Programming - Codeland 2020
erikaheidi
57
15k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
1
310
Leo the Paperboy
mayatellez
11
2.5k
Build your cross-platform service in a week with App Engine
jlugia
234
19k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3.1k
Paper Plane (Part 1)
katiecoart
PRO
3
12k
Chasing Engaging Ingredients in Design
codingconduct
0
410
Art, The Web, and Tiny UX
lynnandtonic
304
22k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.8k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
610
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
570
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
860