SlideShare a Scribd company logo
Grabbing Forensic Images out
     of EC2/Rackspace
              JP Bourget
          Syncurity Networks
        B-Sides Las Vegas 2012
              @punkrokk
             July 26, 2012
What I ran into while grabbing
        forensic images
– What if you lose access to your amazon
  account?
– What if it’s determined that you need to pull
  images from EC2 in order to to forensic
  analysis on them?
– Amazon makes it easy to get data in – but
  tough to get data out
– Rackspace doesn’t make it much easier…
Regaining Admin account access
            (Amazon)
• I called up Amazon and Rackspace –
  Neither has a public procedure – the most
  they will really say is “they will work with
  you”
  – Can I social engineer access to someone’s
    cloud account?
  – Best practice is to use role based access (Use
    Amazon Identity + Access mgmt) (and two
    factor with Google authenticator)
Regaining Access (Rackspace)
• If you have monitoring, racker (rackspace team), and
  your account creds changed – you better hope you
  can reset your admin creds. (drive images can be
  decrypted)
• If they haven’t changed the monitoring account –
  Rackspace will login to that and reset admin
  passwords
• You need to authenticate to your customer cloud/billing
  account and they will reset your server side account
• Best practice is to have a dedicated account which
  provides granular role based access (public cloud side
  – does not have robust delegation at this time) (you
  can schedule account terminations)
Rack space Forensic Images
• You can: Pause the VM
• Sign off from Legal and Cloud Ops Team
• Need to prove ownership of the account
• Send in my own storage
• It’s up to you to have a strategy to get your data
  out (dd, ghost, other 3rd party cloning tool)
• They will boot up a tool if it’s private storage.
• This can be a nightmare (technically and
  logistically)
      • Thanks Nicole Schwartz from RackSpace (@amazonv)
Geographical Zones
• Zones
  – If you have data in multiple zones for
    redundancy it’s a pain to pull things out
  – AWS Import/Export helps – but you need to
    send disks to every zone
  – Rackspace – you have to send in storage
    and scripts in each store zone (will not
    transfer between countries)
Amazon Forensics
• If you have small images ( > 5 GB ) you
  can dd them to another drive then
  download them (http, sftp, etc) (amazon
  linux image has all the tools you need)
• If you have large images - > 5GB and you
  need to use Amazon Import/Export you
  have a different battle to fight 
How to grab and move Large (>
  5GB) forensic image out of EC2
• Mount a linux VM to a snapshot of the
  system (call this /dev/sdg)
• Give the linux VM a slightly larger drive (
  /dev/sdh) – Format ext3/4 (mount it (-loop
  –ro) (/tmp/image-sdg)
• dd if=/dev/sdh | split –d –b 2G /tmp/snap-
  xxxxxx.dd.split.
• Split –d name .01 .02, etc…
Amazon import/Export Services
• You can now send in drives to Amazon
  and have them copy your S3 bucket to
  media they will mail you back
  – You have to combine your split files back
  – You then can mount them in…

• Will amazon help you with this?
  – I dunno – haven’t found any credible answers
    to this…
Move to S3
• Copy to S3 Bucket:
  – Use aws by Tim Kay (timkay.com/aws)

  aws putmybucket/snap-xxxx.dd.01 snap-
  xxxx.dd.01

  This will upload files of max 5GB to S3
Thing you may want to ask before
           going Cloud
• Will they vendor help you grab forensically
  sound images? Is there an SLA?
• Will they support chain of custody?
• What legal stuff will you have to sign before
  they will export data for you? Will they export
  over country lines? (UK to USA?)
• Do the existing tools out there allow you to
  automate a large amount of machines?
• If you are the Feds – getting data out is most
  likely wayyyy easier!
Thanks for listening!
•   Questions?
•   Twitter: @punkrokk
•   jp@syncurity.net
•   Come to @BSidesRoc next year! (May,
    2013)

More Related Content

PDF
Distributed Data Systems
PDF
London Devops #9 - Security at a startup
PPTX
How to run your Hadoop Cluster in 10 minutes
PPTX
Why internal pen tests are still fun
PDF
Big Data answers in seconds with Amazon Athena
PDF
Storage Systems For Scalable systems
PDF
AI 클라우드로 완전 정복하기 - 데이터 분석부터 딥러닝까지 (윤석찬, AWS테크에반젤리스트)
PDF
Thotcon - All aboard the Fail Whale
Distributed Data Systems
London Devops #9 - Security at a startup
How to run your Hadoop Cluster in 10 minutes
Why internal pen tests are still fun
Big Data answers in seconds with Amazon Athena
Storage Systems For Scalable systems
AI 클라우드로 완전 정복하기 - 데이터 분석부터 딥러닝까지 (윤석찬, AWS테크에반젤리스트)
Thotcon - All aboard the Fail Whale

Similar to Grabbing Forensic Images from EC2/Rackspace (20)

PPTX
Tech4Africa 2014
PDF
Creating a scalable & cost efficient BI infrastructure for a startup in the A...
PDF
Mtc learnings from isv & enterprise interaction
PPTX
Mtc learnings from isv & enterprise (dated - Dec -2014)
PPTX
Data data everywhere
PPTX
It's 10pm, Do You Know Where Your Access Keys Are?
PDF
Shmoocon 2015 - httpscreenshot
PDF
Apache Spark v3.0.0
PPTX
Piranha vs. mammoth predator appliances that chew up big data
PDF
Building prediction models with Amazon Redshift and Amazon ML
PPTX
Automate or die! Rootedcon 2017
PPTX
Toni de la Fuente - Automate or die! How to survive to an attack in the Cloud...
PPTX
The rice and fail of an IoT solution
PPTX
Using AWS To Build A Scalable Machine Data Analytics Service
PDF
John adams talk cloudy
PPTX
Master.pptx
PDF
Super Sizing Youtube with Python
PDF
Os Solomon
PPT
SQL or NoSQL, that is the question!
PPTX
Deep thoughts from the real world of azure
Tech4Africa 2014
Creating a scalable & cost efficient BI infrastructure for a startup in the A...
Mtc learnings from isv & enterprise interaction
Mtc learnings from isv & enterprise (dated - Dec -2014)
Data data everywhere
It's 10pm, Do You Know Where Your Access Keys Are?
Shmoocon 2015 - httpscreenshot
Apache Spark v3.0.0
Piranha vs. mammoth predator appliances that chew up big data
Building prediction models with Amazon Redshift and Amazon ML
Automate or die! Rootedcon 2017
Toni de la Fuente - Automate or die! How to survive to an attack in the Cloud...
The rice and fail of an IoT solution
Using AWS To Build A Scalable Machine Data Analytics Service
John adams talk cloudy
Master.pptx
Super Sizing Youtube with Python
Os Solomon
SQL or NoSQL, that is the question!
Deep thoughts from the real world of azure
Ad

Recently uploaded (20)

PDF
Machine learning based COVID-19 study performance prediction
PDF
Encapsulation theory and applications.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPT
Teaching material agriculture food technology
PDF
cuic standard and advanced reporting.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
sap open course for s4hana steps from ECC to s4
PPTX
Cloud computing and distributed systems.
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Machine learning based COVID-19 study performance prediction
Encapsulation theory and applications.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Teaching material agriculture food technology
cuic standard and advanced reporting.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
The AUB Centre for AI in Media Proposal.docx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
MYSQL Presentation for SQL database connectivity
Diabetes mellitus diagnosis method based random forest with bat algorithm
sap open course for s4hana steps from ECC to s4
Cloud computing and distributed systems.
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Unlocking AI with Model Context Protocol (MCP)
Programs and apps: productivity, graphics, security and other tools
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Ad

Grabbing Forensic Images from EC2/Rackspace

  • 1. Grabbing Forensic Images out of EC2/Rackspace JP Bourget Syncurity Networks B-Sides Las Vegas 2012 @punkrokk July 26, 2012
  • 2. What I ran into while grabbing forensic images – What if you lose access to your amazon account? – What if it’s determined that you need to pull images from EC2 in order to to forensic analysis on them? – Amazon makes it easy to get data in – but tough to get data out – Rackspace doesn’t make it much easier…
  • 3. Regaining Admin account access (Amazon) • I called up Amazon and Rackspace – Neither has a public procedure – the most they will really say is “they will work with you” – Can I social engineer access to someone’s cloud account? – Best practice is to use role based access (Use Amazon Identity + Access mgmt) (and two factor with Google authenticator)
  • 4. Regaining Access (Rackspace) • If you have monitoring, racker (rackspace team), and your account creds changed – you better hope you can reset your admin creds. (drive images can be decrypted) • If they haven’t changed the monitoring account – Rackspace will login to that and reset admin passwords • You need to authenticate to your customer cloud/billing account and they will reset your server side account • Best practice is to have a dedicated account which provides granular role based access (public cloud side – does not have robust delegation at this time) (you can schedule account terminations)
  • 5. Rack space Forensic Images • You can: Pause the VM • Sign off from Legal and Cloud Ops Team • Need to prove ownership of the account • Send in my own storage • It’s up to you to have a strategy to get your data out (dd, ghost, other 3rd party cloning tool) • They will boot up a tool if it’s private storage. • This can be a nightmare (technically and logistically) • Thanks Nicole Schwartz from RackSpace (@amazonv)
  • 6. Geographical Zones • Zones – If you have data in multiple zones for redundancy it’s a pain to pull things out – AWS Import/Export helps – but you need to send disks to every zone – Rackspace – you have to send in storage and scripts in each store zone (will not transfer between countries)
  • 7. Amazon Forensics • If you have small images ( > 5 GB ) you can dd them to another drive then download them (http, sftp, etc) (amazon linux image has all the tools you need) • If you have large images - > 5GB and you need to use Amazon Import/Export you have a different battle to fight 
  • 8. How to grab and move Large (> 5GB) forensic image out of EC2 • Mount a linux VM to a snapshot of the system (call this /dev/sdg) • Give the linux VM a slightly larger drive ( /dev/sdh) – Format ext3/4 (mount it (-loop –ro) (/tmp/image-sdg) • dd if=/dev/sdh | split –d –b 2G /tmp/snap- xxxxxx.dd.split. • Split –d name .01 .02, etc…
  • 9. Amazon import/Export Services • You can now send in drives to Amazon and have them copy your S3 bucket to media they will mail you back – You have to combine your split files back – You then can mount them in… • Will amazon help you with this? – I dunno – haven’t found any credible answers to this…
  • 10. Move to S3 • Copy to S3 Bucket: – Use aws by Tim Kay (timkay.com/aws) aws putmybucket/snap-xxxx.dd.01 snap- xxxx.dd.01 This will upload files of max 5GB to S3
  • 11. Thing you may want to ask before going Cloud • Will they vendor help you grab forensically sound images? Is there an SLA? • Will they support chain of custody? • What legal stuff will you have to sign before they will export data for you? Will they export over country lines? (UK to USA?) • Do the existing tools out there allow you to automate a large amount of machines? • If you are the Feds – getting data out is most likely wayyyy easier!
  • 12. Thanks for listening! • Questions? • Twitter: @punkrokk • jp@syncurity.net • Come to @BSidesRoc next year! (May, 2013)

Editor's Notes

  • #3: e.g. an admin consulting for you switches sides
  • #4: asking if I had assets in their cloud and I lost access to the AWS or Rackspace console – what is the process for getting it back? access (Use Amazon Identity + Access mgmt) (and two factor with Google authenticator)