SlideShare a Scribd company logo
1 of 63
Level 1
Foundations of Cloud Security
Lesson 2 - Forming your world
Objective 2:
● Getting acquainted
● Setting up your account
● Root User Lock Down
● IAM Users => Maturing your access model
Form a world
and explore
Prerequisites
1. 2. 3.
Use a credit card and
email to signup
Gained access to the
console of an AWS
Account
Generated an SSH Key
and have a Kali Linux
VM or system to use
Prerequisites
Available on :
https://github.com/andrewkrug/securing-the-cloud-supplemental/blob/main/getting-started-guide/getting-started.md
Your responsibility
● Secure this account
● Pay the bill for this account
○ Plan for $50.00 for the week
○ Keep track of the spend
● Close it when we’re done with the course
○ This takes 30-days
○ I’ll walk you through it
You should have seen this
Root User - Terminology
● Root user in AWS - The first user account you create.
● Root user ONLY tasks (mostly not lies see upcoming content):
○ Change account settings like technical and security contacts.
○ Change payment info.
○ Delegate viewBilling permissions.
○ Permanently close the account
○ Anything with permissions. Access can not be delegated away.
○ Change the support plan.
○ AWS Marketplace Registration
○ Sign up for GovCloud
○ Notify AWS You’re going to PenTest AWS Services
Root User - TL;DR
Generate a root user Add Multi Factor Lock it up
Delegate
access
Root User - TL;DR
Generate a root user Add Multi Factor Lock it up
Delegate
access
Root User - Settings
Root User - Settings
S
C
R
O
L
L
Root User - Settings
A
B
C
Legend:
● A: Where do the
bills go?
● B: When AWS
needs to get rid
of an old server
who gets called?
● C: When your
account is mining
bitcoin and c2 for
nation states who
gets called?
Root User - Settings
Legend:
● D: Challenge
questions that
enable you to
reset the root
user password.
Strangely not
configured by default.
Root User - Challenge Questions
Advice:
● Choose random
challenge items
and generate
secrets for these.
Billing Setup
Billing Setup
Get invoices
Get usage alerts
Root user email gets
billing alerts
Root user settings recap
● Setup security challenges
● Setup billing emails
● Setup contacts for bills, ops, and security
○ Which we will of course keep up to date ;)
● Able to answer the question
○ “Root user what is it good for?”
MFA Options
MFA Enrollment
MFA Options
MFA - TOTP
● Time based one time password
Pros:
● Tried and true
● Lots of support ( virtual, hardware, app)
Cons:
● Device resyncs
● Secret storage for team sharing
MFA - TOTP
Recommendation:
● CLI - oathtool
○ https://savannah.nongnu.org/projects/oath-toolkit/
● DUO App on Mobile
○ Free
○ TOTP Seed Backup
MFA - U2F
MFA - U2F
● Universal second factor
Pros:
● Most secure we have
● Multiple hardware vendors
○ Yubikey ( top right )
○ Feitan Multipass ( bottom right )
● Well supported in Chrome and Firefox
Cons:
● AWS only lets you enroll one key
● Hard to share over distance
Advice:
● Don’t lose the key
Transition from the root user
● Setup Billing Delegation
○ Other users can view bills
● Provision an IAM User to use for the rest of the setup
○ Your first “Administrator”
○ This account will be used for the majority of actions in the course
○ Eventually transition from this when we setup single sign on
Delegate
access
Billing Delegations
Allow IAM users to access
billing. Necessary for
setup of billing alarms
later on.
Get the supplemental course material
https://github.com/andrewkrug/securing-the-cloud-supplemental
Clone it with git
krug@pickle15 workspace % git clone 
https://github.com/andrewkrug/securing-the-cloud-supplemental.git
Navigate to Cloudformation
Add two templates
● From supplemental 01-02
○ 00-unfederated-iam-roles.yml
○ 01-first-user.yml
● Sets up a role structure
○ Requires users to use MFA ( don’t quite worry about how )
● Sets up first IAM user
○ You’ll use this for most of the class
○ Sets a temp password
Let’s see how: https://youtu.be/a4bG-lgp7o8
What did we do?
● Setup a foundational role structure
● ReadOnly and Administrative Access
● Requires MFA
● Generated a first user and random password
What’s next?
● Login to the console
● Setup MFA for this user
● Get an access key pair for the user
● Add it to some tooling to sign in
Sign in as that user
Sign in as that user
This url is the same for all your console users.
Sign in
Sign in
Activate MFA
1 2 3
Go to the IAM Console
Find your user
Activate MFA
4
2
Edit Security Credentials
Enroll a ToTP MFA Device
● Please do not use U2F
● Will not work on the CLI
5
Log Out
Sign back in! ( With MFA )
● You may notice you can do more things!
Try switching roles
Switch Roles! ( With MFA )
● You may notice you can do EVEN more things!
Your account ID from the console sign in
A role name ( UnfederatedAdministrator )
Auto populated
Choose your favorite
Success Looks Like
Your assumed role
We provisioned two roles.
This list can notably be as long as you like.
Get the powers of the role you assumed until you drop them OR 1 hour passes.
Works the same for multi-account / cross account access
Let’s do CLI Access
● My personal recommendation is to CLI using aws-vault
○ Available in your VM or installable on your platform
● Backup method -- use boto3 and awscli natively
● There’s no ONE right way
Get some access and secret keys
IAM -> Users -> ${YOUR_USER} -> Security Credentials
Get some access and secret keys
Save them for later
Install aws-vault
https://github.com/99designs/aws-vault ( Install Instructions )
Or available in the class VM
Why AWS-Vault
● Differentiates long lived and short-lived sessions
● Also adds a metadata proxy for local developers
● Protect secrets at rest
● Much better UX than the aws cli
○ The better the user experience in your security tools the better adoption
you’re going to have.
● Credential leaks are still the #1 cause of AWS Security Incidents
Credential Types
Long Lived
Access key
Secret key
Short Lived
Access key
Secret key
Session Token
Expiry ( usually 1 hour )
Which one
should you
use?
Both!
Used with MFA
Long lived key Short lived session
Some neat things about your IAM User
● That user can only assumeRole ( like UnfederatedAdministrator )
● The assumeRole calls MUST be made with MFA
● If you leak your long-lived key an attacker can’t leverage it
● You can bring this pattern back to your workplace
● How it works … later on : ~ Day 3
Use the long lived credential - NoMFA
Setup some roles to assume
● Get our MFA serial
Associate that MFA Device with a boto profile
Add roles to that same file
Your
account id
From the Cloudformation
UnfederatedAdministrator
UnfederatedRead
Also ensure that you have role_session_name
Must match aws username
More on this control later
Assume a role with MFA
From terminal to web console
It’s not magic -- just vars
What did we do?
● New account setup
● Root account lockdown
● Technical Security and
Billing Contacts
● Get off the root account
● Setup an IAM user model
requiring 2FA with two roles
● Killed long lived access keys
● Practiced role assumption
● Go check out your root account
● Audit the contacts
● Ensure no one has credentials for it in
a password manager or other
● Ensure that it has 2FA
Later on:
● Learn about this 2FA account pattern
If you already have AWS
Questions
Go forth and configure your environment using the instructions for lab 0202-setting-up-
your-account.md in the labs folder at your convenience.
Coming up
Billing

More Related Content

Similar to 002 - Account Setup _ Primer -- hide01.ir.pptx

Industry Best Practices For SSH - DevOps.com Webinar
Industry Best Practices For SSH - DevOps.com WebinarIndustry Best Practices For SSH - DevOps.com Webinar
Industry Best Practices For SSH - DevOps.com WebinarTeleport
 
Industry Best Practices for SSH Access
Industry Best Practices for SSH AccessIndustry Best Practices for SSH Access
Industry Best Practices for SSH AccessDevOps.com
 
Дмитрий Хоревич "Cloud native security with UAA \ Как защитить микросервисы с...
Дмитрий Хоревич "Cloud native security with UAA \ Как защитить микросервисы с...Дмитрий Хоревич "Cloud native security with UAA \ Как защитить микросервисы с...
Дмитрий Хоревич "Cloud native security with UAA \ Как защитить микросервисы с...Tanya Denisyuk
 
OAuth2 & OpenID Connect with Spring Security
OAuth2 & OpenID Connect with Spring SecurityOAuth2 & OpenID Connect with Spring Security
OAuth2 & OpenID Connect with Spring SecurityShuto Uwai
 
Introduction to SAP Security
Introduction to SAP SecurityIntroduction to SAP Security
Introduction to SAP SecurityNasir Gondal
 
Chapter 09
Chapter 09Chapter 09
Chapter 09cclay3
 
CISSP Week 14
CISSP Week 14CISSP Week 14
CISSP Week 14jemtallon
 
ID304 - Lotus® Connections 3.0 TDI, SSO, and User Life Cycle Management: What...
ID304 - Lotus® Connections 3.0 TDI, SSO, and User Life Cycle Management: What...ID304 - Lotus® Connections 3.0 TDI, SSO, and User Life Cycle Management: What...
ID304 - Lotus® Connections 3.0 TDI, SSO, and User Life Cycle Management: What...Luis Benitez
 
Security in microservices architectures
Security in microservices architecturesSecurity in microservices architectures
Security in microservices architecturesinovia
 
Cost-Effective Two-Factor Authentication
Cost-Effective Two-Factor AuthenticationCost-Effective Two-Factor Authentication
Cost-Effective Two-Factor AuthenticationWaihon Yew
 
AWS UG Warsaw & Serverless warsztatowo! 19.09.2019 | Hillel Solow's presentation
AWS UG Warsaw & Serverless warsztatowo! 19.09.2019 | Hillel Solow's presentationAWS UG Warsaw & Serverless warsztatowo! 19.09.2019 | Hillel Solow's presentation
AWS UG Warsaw & Serverless warsztatowo! 19.09.2019 | Hillel Solow's presentationServerless User Group Poland
 
"Don’t Run with Scissors: Serverless Security Survival Guide" | Hillel Solow,...
"Don’t Run with Scissors: Serverless Security Survival Guide" | Hillel Solow,..."Don’t Run with Scissors: Serverless Security Survival Guide" | Hillel Solow,...
"Don’t Run with Scissors: Serverless Security Survival Guide" | Hillel Solow,...LCloud
 
06 application security fundamentals - part 2 - security mechanisms - sessi...
06   application security fundamentals - part 2 - security mechanisms - sessi...06   application security fundamentals - part 2 - security mechanisms - sessi...
06 application security fundamentals - part 2 - security mechanisms - sessi...appsec
 
Ladies Be Architects: Integration Study Group: Security & State Management
Ladies Be Architects: Integration Study Group: Security & State ManagementLadies Be Architects: Integration Study Group: Security & State Management
Ladies Be Architects: Integration Study Group: Security & State Managementgemziebeth
 
Netflix Open Source Meetup Season 4 Episode 3
Netflix Open Source Meetup Season 4 Episode 3Netflix Open Source Meetup Season 4 Episode 3
Netflix Open Source Meetup Season 4 Episode 3aspyker
 

Similar to 002 - Account Setup _ Primer -- hide01.ir.pptx (20)

Industry Best Practices For SSH - DevOps.com Webinar
Industry Best Practices For SSH - DevOps.com WebinarIndustry Best Practices For SSH - DevOps.com Webinar
Industry Best Practices For SSH - DevOps.com Webinar
 
Industry Best Practices for SSH Access
Industry Best Practices for SSH AccessIndustry Best Practices for SSH Access
Industry Best Practices for SSH Access
 
Дмитрий Хоревич "Cloud native security with UAA \ Как защитить микросервисы с...
Дмитрий Хоревич "Cloud native security with UAA \ Как защитить микросервисы с...Дмитрий Хоревич "Cloud native security with UAA \ Как защитить микросервисы с...
Дмитрий Хоревич "Cloud native security with UAA \ Как защитить микросервисы с...
 
OAuth2 & OpenID Connect with Spring Security
OAuth2 & OpenID Connect with Spring SecurityOAuth2 & OpenID Connect with Spring Security
OAuth2 & OpenID Connect with Spring Security
 
Introduction to SAP Security
Introduction to SAP SecurityIntroduction to SAP Security
Introduction to SAP Security
 
Ch10 system administration
Ch10 system administration Ch10 system administration
Ch10 system administration
 
Ch10
Ch10Ch10
Ch10
 
Chapter 09
Chapter 09Chapter 09
Chapter 09
 
I Hunt Sys Admins
I Hunt Sys AdminsI Hunt Sys Admins
I Hunt Sys Admins
 
CISSP Week 14
CISSP Week 14CISSP Week 14
CISSP Week 14
 
ID304 - Lotus® Connections 3.0 TDI, SSO, and User Life Cycle Management: What...
ID304 - Lotus® Connections 3.0 TDI, SSO, and User Life Cycle Management: What...ID304 - Lotus® Connections 3.0 TDI, SSO, and User Life Cycle Management: What...
ID304 - Lotus® Connections 3.0 TDI, SSO, and User Life Cycle Management: What...
 
I hunt sys admins 2.0
I hunt sys admins 2.0I hunt sys admins 2.0
I hunt sys admins 2.0
 
Security in microservices architectures
Security in microservices architecturesSecurity in microservices architectures
Security in microservices architectures
 
Cost-Effective Two-Factor Authentication
Cost-Effective Two-Factor AuthenticationCost-Effective Two-Factor Authentication
Cost-Effective Two-Factor Authentication
 
AWS UG Warsaw & Serverless warsztatowo! 19.09.2019 | Hillel Solow's presentation
AWS UG Warsaw & Serverless warsztatowo! 19.09.2019 | Hillel Solow's presentationAWS UG Warsaw & Serverless warsztatowo! 19.09.2019 | Hillel Solow's presentation
AWS UG Warsaw & Serverless warsztatowo! 19.09.2019 | Hillel Solow's presentation
 
"Don’t Run with Scissors: Serverless Security Survival Guide" | Hillel Solow,...
"Don’t Run with Scissors: Serverless Security Survival Guide" | Hillel Solow,..."Don’t Run with Scissors: Serverless Security Survival Guide" | Hillel Solow,...
"Don’t Run with Scissors: Serverless Security Survival Guide" | Hillel Solow,...
 
06 application security fundamentals - part 2 - security mechanisms - sessi...
06   application security fundamentals - part 2 - security mechanisms - sessi...06   application security fundamentals - part 2 - security mechanisms - sessi...
06 application security fundamentals - part 2 - security mechanisms - sessi...
 
Cloud Identity Management
Cloud Identity ManagementCloud Identity Management
Cloud Identity Management
 
Ladies Be Architects: Integration Study Group: Security & State Management
Ladies Be Architects: Integration Study Group: Security & State ManagementLadies Be Architects: Integration Study Group: Security & State Management
Ladies Be Architects: Integration Study Group: Security & State Management
 
Netflix Open Source Meetup Season 4 Episode 3
Netflix Open Source Meetup Season 4 Episode 3Netflix Open Source Meetup Season 4 Episode 3
Netflix Open Source Meetup Season 4 Episode 3
 

More from nitinscribd

Splunk 6.4 Administration.pdf
Splunk 6.4 Administration.pdfSplunk 6.4 Administration.pdf
Splunk 6.4 Administration.pdfnitinscribd
 
eu-15-Haken-Bypassing-Local-Windows-Authentication-To-Defeat-Full-Disk-Encryp...
eu-15-Haken-Bypassing-Local-Windows-Authentication-To-Defeat-Full-Disk-Encryp...eu-15-Haken-Bypassing-Local-Windows-Authentication-To-Defeat-Full-Disk-Encryp...
eu-15-Haken-Bypassing-Local-Windows-Authentication-To-Defeat-Full-Disk-Encryp...nitinscribd
 
OSC-Fall-Tokyo-2012-v9.pdf
OSC-Fall-Tokyo-2012-v9.pdfOSC-Fall-Tokyo-2012-v9.pdf
OSC-Fall-Tokyo-2012-v9.pdfnitinscribd
 
003 - Billing -- hide01.ir.pptx
003 - Billing  --  hide01.ir.pptx003 - Billing  --  hide01.ir.pptx
003 - Billing -- hide01.ir.pptxnitinscribd
 
001 - Get acquainted with the AWS platform -- hide01.ir.pptx
001 - Get acquainted with the AWS platform  --  hide01.ir.pptx001 - Get acquainted with the AWS platform  --  hide01.ir.pptx
001 - Get acquainted with the AWS platform -- hide01.ir.pptxnitinscribd
 
how-to-bypass-AM-PPL
how-to-bypass-AM-PPLhow-to-bypass-AM-PPL
how-to-bypass-AM-PPLnitinscribd
 

More from nitinscribd (7)

Splunk 6.4 Administration.pdf
Splunk 6.4 Administration.pdfSplunk 6.4 Administration.pdf
Splunk 6.4 Administration.pdf
 
eu-15-Haken-Bypassing-Local-Windows-Authentication-To-Defeat-Full-Disk-Encryp...
eu-15-Haken-Bypassing-Local-Windows-Authentication-To-Defeat-Full-Disk-Encryp...eu-15-Haken-Bypassing-Local-Windows-Authentication-To-Defeat-Full-Disk-Encryp...
eu-15-Haken-Bypassing-Local-Windows-Authentication-To-Defeat-Full-Disk-Encryp...
 
OSC-Fall-Tokyo-2012-v9.pdf
OSC-Fall-Tokyo-2012-v9.pdfOSC-Fall-Tokyo-2012-v9.pdf
OSC-Fall-Tokyo-2012-v9.pdf
 
soctool.pdf
soctool.pdfsoctool.pdf
soctool.pdf
 
003 - Billing -- hide01.ir.pptx
003 - Billing  --  hide01.ir.pptx003 - Billing  --  hide01.ir.pptx
003 - Billing -- hide01.ir.pptx
 
001 - Get acquainted with the AWS platform -- hide01.ir.pptx
001 - Get acquainted with the AWS platform  --  hide01.ir.pptx001 - Get acquainted with the AWS platform  --  hide01.ir.pptx
001 - Get acquainted with the AWS platform -- hide01.ir.pptx
 
how-to-bypass-AM-PPL
how-to-bypass-AM-PPLhow-to-bypass-AM-PPL
how-to-bypass-AM-PPL
 

Recently uploaded

Patrakarpuram ) Cheap Call Girls In Lucknow (Adult Only) 🧈 8923113531 𓀓 Esco...
Patrakarpuram ) Cheap Call Girls In Lucknow  (Adult Only) 🧈 8923113531 𓀓 Esco...Patrakarpuram ) Cheap Call Girls In Lucknow  (Adult Only) 🧈 8923113531 𓀓 Esco...
Patrakarpuram ) Cheap Call Girls In Lucknow (Adult Only) 🧈 8923113531 𓀓 Esco...akbard9823
 
Lucknow 💋 Female Escorts Service in Lucknow | Service-oriented sexy call girl...
Lucknow 💋 Female Escorts Service in Lucknow | Service-oriented sexy call girl...Lucknow 💋 Female Escorts Service in Lucknow | Service-oriented sexy call girl...
Lucknow 💋 Female Escorts Service in Lucknow | Service-oriented sexy call girl...anilsa9823
 
Best Call girls in Lucknow - 9548086042 - with hotel room
Best Call girls in Lucknow - 9548086042 - with hotel roomBest Call girls in Lucknow - 9548086042 - with hotel room
Best Call girls in Lucknow - 9548086042 - with hotel roomdiscovermytutordmt
 
Hazratganj ] (Call Girls) in Lucknow - 450+ Call Girl Cash Payment 🧄 89231135...
Hazratganj ] (Call Girls) in Lucknow - 450+ Call Girl Cash Payment 🧄 89231135...Hazratganj ] (Call Girls) in Lucknow - 450+ Call Girl Cash Payment 🧄 89231135...
Hazratganj ] (Call Girls) in Lucknow - 450+ Call Girl Cash Payment 🧄 89231135...akbard9823
 
Islamabad Escorts # 03080115551 # Escorts in Islamabad || Call Girls in Islam...
Islamabad Escorts # 03080115551 # Escorts in Islamabad || Call Girls in Islam...Islamabad Escorts # 03080115551 # Escorts in Islamabad || Call Girls in Islam...
Islamabad Escorts # 03080115551 # Escorts in Islamabad || Call Girls in Islam...wdefrd
 
Lucknow 💋 Call Girls in Lucknow | Service-oriented sexy call girls 8923113531...
Lucknow 💋 Call Girls in Lucknow | Service-oriented sexy call girls 8923113531...Lucknow 💋 Call Girls in Lucknow | Service-oriented sexy call girls 8923113531...
Lucknow 💋 Call Girls in Lucknow | Service-oriented sexy call girls 8923113531...anilsa9823
 
exhuma plot and synopsis from the exhuma movie.pptx
exhuma plot and synopsis from the exhuma movie.pptxexhuma plot and synopsis from the exhuma movie.pptx
exhuma plot and synopsis from the exhuma movie.pptxKurikulumPenilaian
 
Charbagh ! (Call Girls) in Lucknow Finest Escorts Service 🥗 8923113531 🏊 Avai...
Charbagh ! (Call Girls) in Lucknow Finest Escorts Service 🥗 8923113531 🏊 Avai...Charbagh ! (Call Girls) in Lucknow Finest Escorts Service 🥗 8923113531 🏊 Avai...
Charbagh ! (Call Girls) in Lucknow Finest Escorts Service 🥗 8923113531 🏊 Avai...gurkirankumar98700
 
Jeremy Casson - An Architectural and Historical Journey Around Europe
Jeremy Casson - An Architectural and Historical Journey Around EuropeJeremy Casson - An Architectural and Historical Journey Around Europe
Jeremy Casson - An Architectural and Historical Journey Around EuropeJeremy Casson
 
Indira Nagar Lucknow #Call Girls Lucknow ₹7.5k Pick Up & Drop With Cash Payme...
Indira Nagar Lucknow #Call Girls Lucknow ₹7.5k Pick Up & Drop With Cash Payme...Indira Nagar Lucknow #Call Girls Lucknow ₹7.5k Pick Up & Drop With Cash Payme...
Indira Nagar Lucknow #Call Girls Lucknow ₹7.5k Pick Up & Drop With Cash Payme...akbard9823
 
Bridge Fight Board by Daniel Johnson dtjohnsonart.com
Bridge Fight Board by Daniel Johnson dtjohnsonart.comBridge Fight Board by Daniel Johnson dtjohnsonart.com
Bridge Fight Board by Daniel Johnson dtjohnsonart.comthephillipta
 
Deconstructing Gendered Language; Feminist World-Making 2024
Deconstructing Gendered Language; Feminist World-Making 2024Deconstructing Gendered Language; Feminist World-Making 2024
Deconstructing Gendered Language; Feminist World-Making 2024samlnance
 
The First Date by Daniel Johnson (Inspired By True Events)
The First Date by Daniel Johnson (Inspired By True Events)The First Date by Daniel Johnson (Inspired By True Events)
The First Date by Daniel Johnson (Inspired By True Events)thephillipta
 
Lucknow 💋 Russian Call Girls Lucknow - Book 8923113531 Call Girls Available 2...
Lucknow 💋 Russian Call Girls Lucknow - Book 8923113531 Call Girls Available 2...Lucknow 💋 Russian Call Girls Lucknow - Book 8923113531 Call Girls Available 2...
Lucknow 💋 Russian Call Girls Lucknow - Book 8923113531 Call Girls Available 2...anilsa9823
 
RAK Call Girls Service # 971559085003 # Call Girl Service In RAK
RAK Call Girls Service # 971559085003 # Call Girl Service In RAKRAK Call Girls Service # 971559085003 # Call Girl Service In RAK
RAK Call Girls Service # 971559085003 # Call Girl Service In RAKedwardsara83
 
this is a jarvis ppt for jarvis ai assistant lovers and this is for you
this is a jarvis ppt for jarvis ai assistant lovers and this is for youthis is a jarvis ppt for jarvis ai assistant lovers and this is for you
this is a jarvis ppt for jarvis ai assistant lovers and this is for youhigev50580
 
Alex and Chloe by Daniel Johnson Storyboard
Alex and Chloe by Daniel Johnson StoryboardAlex and Chloe by Daniel Johnson Storyboard
Alex and Chloe by Daniel Johnson Storyboardthephillipta
 
Editorial sephora annual report design project
Editorial sephora annual report design projectEditorial sephora annual report design project
Editorial sephora annual report design projecttbatkhuu1
 
Hazratganj / Call Girl in Lucknow - Phone 🫗 8923113531 ☛ Escorts Service at 6...
Hazratganj / Call Girl in Lucknow - Phone 🫗 8923113531 ☛ Escorts Service at 6...Hazratganj / Call Girl in Lucknow - Phone 🫗 8923113531 ☛ Escorts Service at 6...
Hazratganj / Call Girl in Lucknow - Phone 🫗 8923113531 ☛ Escorts Service at 6...akbard9823
 

Recently uploaded (20)

Patrakarpuram ) Cheap Call Girls In Lucknow (Adult Only) 🧈 8923113531 𓀓 Esco...
Patrakarpuram ) Cheap Call Girls In Lucknow  (Adult Only) 🧈 8923113531 𓀓 Esco...Patrakarpuram ) Cheap Call Girls In Lucknow  (Adult Only) 🧈 8923113531 𓀓 Esco...
Patrakarpuram ) Cheap Call Girls In Lucknow (Adult Only) 🧈 8923113531 𓀓 Esco...
 
Lucknow 💋 Female Escorts Service in Lucknow | Service-oriented sexy call girl...
Lucknow 💋 Female Escorts Service in Lucknow | Service-oriented sexy call girl...Lucknow 💋 Female Escorts Service in Lucknow | Service-oriented sexy call girl...
Lucknow 💋 Female Escorts Service in Lucknow | Service-oriented sexy call girl...
 
Dxb Call Girls # +971529501107 # Call Girls In Dxb Dubai || (UAE)
Dxb Call Girls # +971529501107 # Call Girls In Dxb Dubai || (UAE)Dxb Call Girls # +971529501107 # Call Girls In Dxb Dubai || (UAE)
Dxb Call Girls # +971529501107 # Call Girls In Dxb Dubai || (UAE)
 
Best Call girls in Lucknow - 9548086042 - with hotel room
Best Call girls in Lucknow - 9548086042 - with hotel roomBest Call girls in Lucknow - 9548086042 - with hotel room
Best Call girls in Lucknow - 9548086042 - with hotel room
 
Hazratganj ] (Call Girls) in Lucknow - 450+ Call Girl Cash Payment 🧄 89231135...
Hazratganj ] (Call Girls) in Lucknow - 450+ Call Girl Cash Payment 🧄 89231135...Hazratganj ] (Call Girls) in Lucknow - 450+ Call Girl Cash Payment 🧄 89231135...
Hazratganj ] (Call Girls) in Lucknow - 450+ Call Girl Cash Payment 🧄 89231135...
 
Islamabad Escorts # 03080115551 # Escorts in Islamabad || Call Girls in Islam...
Islamabad Escorts # 03080115551 # Escorts in Islamabad || Call Girls in Islam...Islamabad Escorts # 03080115551 # Escorts in Islamabad || Call Girls in Islam...
Islamabad Escorts # 03080115551 # Escorts in Islamabad || Call Girls in Islam...
 
Lucknow 💋 Call Girls in Lucknow | Service-oriented sexy call girls 8923113531...
Lucknow 💋 Call Girls in Lucknow | Service-oriented sexy call girls 8923113531...Lucknow 💋 Call Girls in Lucknow | Service-oriented sexy call girls 8923113531...
Lucknow 💋 Call Girls in Lucknow | Service-oriented sexy call girls 8923113531...
 
exhuma plot and synopsis from the exhuma movie.pptx
exhuma plot and synopsis from the exhuma movie.pptxexhuma plot and synopsis from the exhuma movie.pptx
exhuma plot and synopsis from the exhuma movie.pptx
 
Charbagh ! (Call Girls) in Lucknow Finest Escorts Service 🥗 8923113531 🏊 Avai...
Charbagh ! (Call Girls) in Lucknow Finest Escorts Service 🥗 8923113531 🏊 Avai...Charbagh ! (Call Girls) in Lucknow Finest Escorts Service 🥗 8923113531 🏊 Avai...
Charbagh ! (Call Girls) in Lucknow Finest Escorts Service 🥗 8923113531 🏊 Avai...
 
Jeremy Casson - An Architectural and Historical Journey Around Europe
Jeremy Casson - An Architectural and Historical Journey Around EuropeJeremy Casson - An Architectural and Historical Journey Around Europe
Jeremy Casson - An Architectural and Historical Journey Around Europe
 
Indira Nagar Lucknow #Call Girls Lucknow ₹7.5k Pick Up & Drop With Cash Payme...
Indira Nagar Lucknow #Call Girls Lucknow ₹7.5k Pick Up & Drop With Cash Payme...Indira Nagar Lucknow #Call Girls Lucknow ₹7.5k Pick Up & Drop With Cash Payme...
Indira Nagar Lucknow #Call Girls Lucknow ₹7.5k Pick Up & Drop With Cash Payme...
 
Bridge Fight Board by Daniel Johnson dtjohnsonart.com
Bridge Fight Board by Daniel Johnson dtjohnsonart.comBridge Fight Board by Daniel Johnson dtjohnsonart.com
Bridge Fight Board by Daniel Johnson dtjohnsonart.com
 
Deconstructing Gendered Language; Feminist World-Making 2024
Deconstructing Gendered Language; Feminist World-Making 2024Deconstructing Gendered Language; Feminist World-Making 2024
Deconstructing Gendered Language; Feminist World-Making 2024
 
The First Date by Daniel Johnson (Inspired By True Events)
The First Date by Daniel Johnson (Inspired By True Events)The First Date by Daniel Johnson (Inspired By True Events)
The First Date by Daniel Johnson (Inspired By True Events)
 
Lucknow 💋 Russian Call Girls Lucknow - Book 8923113531 Call Girls Available 2...
Lucknow 💋 Russian Call Girls Lucknow - Book 8923113531 Call Girls Available 2...Lucknow 💋 Russian Call Girls Lucknow - Book 8923113531 Call Girls Available 2...
Lucknow 💋 Russian Call Girls Lucknow - Book 8923113531 Call Girls Available 2...
 
RAK Call Girls Service # 971559085003 # Call Girl Service In RAK
RAK Call Girls Service # 971559085003 # Call Girl Service In RAKRAK Call Girls Service # 971559085003 # Call Girl Service In RAK
RAK Call Girls Service # 971559085003 # Call Girl Service In RAK
 
this is a jarvis ppt for jarvis ai assistant lovers and this is for you
this is a jarvis ppt for jarvis ai assistant lovers and this is for youthis is a jarvis ppt for jarvis ai assistant lovers and this is for you
this is a jarvis ppt for jarvis ai assistant lovers and this is for you
 
Alex and Chloe by Daniel Johnson Storyboard
Alex and Chloe by Daniel Johnson StoryboardAlex and Chloe by Daniel Johnson Storyboard
Alex and Chloe by Daniel Johnson Storyboard
 
Editorial sephora annual report design project
Editorial sephora annual report design projectEditorial sephora annual report design project
Editorial sephora annual report design project
 
Hazratganj / Call Girl in Lucknow - Phone 🫗 8923113531 ☛ Escorts Service at 6...
Hazratganj / Call Girl in Lucknow - Phone 🫗 8923113531 ☛ Escorts Service at 6...Hazratganj / Call Girl in Lucknow - Phone 🫗 8923113531 ☛ Escorts Service at 6...
Hazratganj / Call Girl in Lucknow - Phone 🫗 8923113531 ☛ Escorts Service at 6...
 

002 - Account Setup _ Primer -- hide01.ir.pptx

  • 1. Level 1 Foundations of Cloud Security
  • 2. Lesson 2 - Forming your world Objective 2: ● Getting acquainted ● Setting up your account ● Root User Lock Down ● IAM Users => Maturing your access model Form a world and explore
  • 3. Prerequisites 1. 2. 3. Use a credit card and email to signup Gained access to the console of an AWS Account Generated an SSH Key and have a Kali Linux VM or system to use
  • 5. Your responsibility ● Secure this account ● Pay the bill for this account ○ Plan for $50.00 for the week ○ Keep track of the spend ● Close it when we’re done with the course ○ This takes 30-days ○ I’ll walk you through it
  • 6. You should have seen this
  • 7. Root User - Terminology ● Root user in AWS - The first user account you create. ● Root user ONLY tasks (mostly not lies see upcoming content): ○ Change account settings like technical and security contacts. ○ Change payment info. ○ Delegate viewBilling permissions. ○ Permanently close the account ○ Anything with permissions. Access can not be delegated away. ○ Change the support plan. ○ AWS Marketplace Registration ○ Sign up for GovCloud ○ Notify AWS You’re going to PenTest AWS Services
  • 8. Root User - TL;DR Generate a root user Add Multi Factor Lock it up Delegate access
  • 9. Root User - TL;DR Generate a root user Add Multi Factor Lock it up Delegate access
  • 10. Root User - Settings
  • 11. Root User - Settings S C R O L L
  • 12. Root User - Settings A B C Legend: ● A: Where do the bills go? ● B: When AWS needs to get rid of an old server who gets called? ● C: When your account is mining bitcoin and c2 for nation states who gets called?
  • 13. Root User - Settings Legend: ● D: Challenge questions that enable you to reset the root user password. Strangely not configured by default.
  • 14. Root User - Challenge Questions Advice: ● Choose random challenge items and generate secrets for these.
  • 16. Billing Setup Get invoices Get usage alerts Root user email gets billing alerts
  • 17. Root user settings recap ● Setup security challenges ● Setup billing emails ● Setup contacts for bills, ops, and security ○ Which we will of course keep up to date ;) ● Able to answer the question ○ “Root user what is it good for?”
  • 20. MFA - TOTP ● Time based one time password Pros: ● Tried and true ● Lots of support ( virtual, hardware, app) Cons: ● Device resyncs ● Secret storage for team sharing
  • 21. MFA - TOTP Recommendation: ● CLI - oathtool ○ https://savannah.nongnu.org/projects/oath-toolkit/ ● DUO App on Mobile ○ Free ○ TOTP Seed Backup
  • 23. MFA - U2F ● Universal second factor Pros: ● Most secure we have ● Multiple hardware vendors ○ Yubikey ( top right ) ○ Feitan Multipass ( bottom right ) ● Well supported in Chrome and Firefox Cons: ● AWS only lets you enroll one key ● Hard to share over distance Advice: ● Don’t lose the key
  • 24. Transition from the root user ● Setup Billing Delegation ○ Other users can view bills ● Provision an IAM User to use for the rest of the setup ○ Your first “Administrator” ○ This account will be used for the majority of actions in the course ○ Eventually transition from this when we setup single sign on Delegate access
  • 25. Billing Delegations Allow IAM users to access billing. Necessary for setup of billing alarms later on.
  • 26. Get the supplemental course material https://github.com/andrewkrug/securing-the-cloud-supplemental
  • 27. Clone it with git krug@pickle15 workspace % git clone https://github.com/andrewkrug/securing-the-cloud-supplemental.git
  • 29. Add two templates ● From supplemental 01-02 ○ 00-unfederated-iam-roles.yml ○ 01-first-user.yml ● Sets up a role structure ○ Requires users to use MFA ( don’t quite worry about how ) ● Sets up first IAM user ○ You’ll use this for most of the class ○ Sets a temp password
  • 30. Let’s see how: https://youtu.be/a4bG-lgp7o8
  • 31. What did we do? ● Setup a foundational role structure ● ReadOnly and Administrative Access ● Requires MFA ● Generated a first user and random password What’s next? ● Login to the console ● Setup MFA for this user ● Get an access key pair for the user ● Add it to some tooling to sign in
  • 32. Sign in as that user
  • 33. Sign in as that user This url is the same for all your console users.
  • 36. Activate MFA 1 2 3 Go to the IAM Console Find your user
  • 37. Activate MFA 4 2 Edit Security Credentials Enroll a ToTP MFA Device ● Please do not use U2F ● Will not work on the CLI 5
  • 39. Sign back in! ( With MFA ) ● You may notice you can do more things! Try switching roles
  • 40. Switch Roles! ( With MFA ) ● You may notice you can do EVEN more things! Your account ID from the console sign in A role name ( UnfederatedAdministrator ) Auto populated Choose your favorite
  • 41. Success Looks Like Your assumed role We provisioned two roles. This list can notably be as long as you like. Get the powers of the role you assumed until you drop them OR 1 hour passes. Works the same for multi-account / cross account access
  • 42. Let’s do CLI Access ● My personal recommendation is to CLI using aws-vault ○ Available in your VM or installable on your platform ● Backup method -- use boto3 and awscli natively ● There’s no ONE right way
  • 43. Get some access and secret keys IAM -> Users -> ${YOUR_USER} -> Security Credentials
  • 44. Get some access and secret keys Save them for later
  • 45. Install aws-vault https://github.com/99designs/aws-vault ( Install Instructions ) Or available in the class VM
  • 46. Why AWS-Vault ● Differentiates long lived and short-lived sessions ● Also adds a metadata proxy for local developers ● Protect secrets at rest ● Much better UX than the aws cli ○ The better the user experience in your security tools the better adoption you’re going to have. ● Credential leaks are still the #1 cause of AWS Security Incidents
  • 47. Credential Types Long Lived Access key Secret key Short Lived Access key Secret key Session Token Expiry ( usually 1 hour )
  • 49. Both!
  • 50. Used with MFA Long lived key Short lived session
  • 51. Some neat things about your IAM User ● That user can only assumeRole ( like UnfederatedAdministrator ) ● The assumeRole calls MUST be made with MFA ● If you leak your long-lived key an attacker can’t leverage it ● You can bring this pattern back to your workplace ● How it works … later on : ~ Day 3
  • 52.
  • 53. Use the long lived credential - NoMFA
  • 54. Setup some roles to assume ● Get our MFA serial
  • 55. Associate that MFA Device with a boto profile
  • 56. Add roles to that same file Your account id From the Cloudformation UnfederatedAdministrator UnfederatedRead
  • 57. Also ensure that you have role_session_name Must match aws username More on this control later
  • 58. Assume a role with MFA
  • 59. From terminal to web console
  • 60. It’s not magic -- just vars
  • 61. What did we do? ● New account setup ● Root account lockdown ● Technical Security and Billing Contacts ● Get off the root account ● Setup an IAM user model requiring 2FA with two roles ● Killed long lived access keys ● Practiced role assumption ● Go check out your root account ● Audit the contacts ● Ensure no one has credentials for it in a password manager or other ● Ensure that it has 2FA Later on: ● Learn about this 2FA account pattern If you already have AWS
  • 62. Questions Go forth and configure your environment using the instructions for lab 0202-setting-up- your-account.md in the labs folder at your convenience.