Upgrade to Pro — share decks privately, control downloads, hide ads and more …

踏み台環境におけるAmazon Maice活用の提案 #secjaws #secjaws08

fnifni
February 24, 2018

踏み台環境におけるAmazon Maice活用の提案 #secjaws #secjaws08

Bastion
Amazon Maice
#secjaws #secjaws08

fnifni

February 24, 2018
Tweet

More Decks by fnifni

Other Decks in Technology

Transcript

  1. Everyone!

    Are you doing?
    Proposal of using Amazon Macie in Bastion
    At S-JAWS # 8
    2018.02.23

    View full-size slide

  2. ΈΜͳʂ!

    ΍ͬͯΔ͔͍?
    ౿Έ୆ ؀ڥʹ͓͚ΔAmazon Macie׆༻ͷఏҊ
    S-JAWS # 8 ʹͯ
    2018.02.23

    View full-size slide

  3. Who Am I !?ʢ͓લ୭Αʁʣ
    • Hirokazu YoshidaˏCloud Native Inc.

    Security Engineer
    • Community

    - Security-JAWS

    - Deep Security User Group
    • Favorite AWS Service
    https://qiita.com/fnifni

    View full-size slide

  4. ͱ͍͏Θ͚Ͱ
    ຊ୊

    View full-size slide

  5. ౿Έ୆ͱฉ͍ͯ
    ԿΛ࿈૝͠·͔͢ʁ

    View full-size slide

  6. ౿Έ୆αʔό࡞ͬͯ
    ͱݴΘΕͯ

    ςϯγϣϯ্͕Γ·͔͢ʁ

    View full-size slide

  7. ཁ࠹αʔό࡞ͬͯ
    ͱݴΘΕͨΒʁ

    View full-size slide

  8. Motivation of Bastion server
    • ୭͕ϩάΠϯͰ͖Δ͔ʢೝূ/ೝՄʣ
    • ؀ڥ΁ͷ།Ұͷ௨Γಓʢ৴པ͢Δܦ࿏ʣ
    • Ϣʔβʔͷߦಈه࿥΍σʔλ͕௨ա

    ʢ؂ࠪϙΠϯτʣ

    View full-size slide

  9. ΋ͬͱݴ͏ͱ

    View full-size slide

  10. Really scary Bastion server
    • ੑѱઆʹཱͭͱɺ

    ΠϯλϥΫςΟϒͳϩάΠϯૢ࡞͸ΞϯηΩϡΞ
    • ۀ຿ޮ཰ʢϏδωεͷ଎౓ʣʹ௚݁͢ΔͨΊɺ
    ηΩϡϦςΟͱརศੑ͕ৗʹఱṝʹྔΒΕΔ
    • ϏδωεͱηΩϡϦςΟͷલઢج஍

    View full-size slide

  11. ଧ伴ϩάͷऔಘ/෼ੳ͸
    ෆՄආ

    View full-size slide

  12. ίϯϓϥΠΞϯεͰ

    ఆΊΒΕͯΔ͠ɺऔͬͯΔΑ
    Կ͔͋Ε͹௥͑Δ͠ɻ

    View full-size slide

  13. ͦΜͳϞνϕʔγϣϯͰ
    ྑ͔ͬͨΜ͚ͩͬʁ

    View full-size slide

  14. https://www.cisecurity.org/controls/

    View full-size slide

  15. 20 CIS Controls is Կ
    • NIST SP800-53 (࿈๜੓෎৘ใγεςϜ ͓Αͼ
    ࿈๜૊৫ͷͨΊͷ ηΩϡϦςΟ؅ཧࡦͱϓϥ
    Πόγʔ؅ཧࡦ) Λ࣮૷͢Δ্ͰॏཁͱͳΔ20
    ͷηΩϡϦςΟίϯτϩʔϧΛ·ͱΊͨจॻ

    View full-size slide

  16. 6. Maintenance, Monitoring,
    and Analysis of Audit Logs
    • ݕग़ɺཧղɺ·ͨ͸߈ܸ͔Βͷճ෮ʹ໾ཱͭ
    Մೳੑͷ͋ΔΠϕϯτͷ؂ࠪϩάΛऩूɺ؅
    ཧɺ͓Αͼ෼ੳ
    • ଟ͘ͷ૊৫Ͱ͸ɺίϯϓϥΠΞϯεͷ໨తͰ
    ؂ࠪه࿥Λอ͍࣋ͯ͠·͕͢ɺ؂ࠪϩάΛ΄
    ͱΜͲࢀর͠ͳ͍ͨΊɺγεςϜ͕৵֐͞Ε
    ͍ͯΔ͔Ͳ͏͔͸Θ͔Γ·ͤΜɻ

    View full-size slide

  17. 13. Data Protection
    • ओʹ҉߸ԽͱDLPʹ͍ͭͯͷهࡌ
    • DLPίϯτϩʔϧ͸ϙϦγʔʹج͍͓ͮͯ
    Γɺػີσʔλͷ෼ྨɺاۀશମͷσʔλͷ
    ݕग़ɺ੍ޚͷ࣮ࢪɺϙϦγʔͷ४ڌΛอূ͢
    ΔͨΊͷϨϙʔτ࡞੒ͱ؂ࠪͳͲؚ͕·Ε·
    ͢ɻ

    View full-size slide

  18. ͭ·Γ
    • ଧ伴ϩάΛऩूͯ͠΋ɺ؂ࠪ͠ͳ͍ͳΒҙຯ͕
    ͳ͍
    • ϙϦγʔʹج͍ͮͨػີσʔλͷ෼ྨͳͯ͘͠ɺ
    ػີσʔλ΁ΞΫηε͢Δӡ༻ʹؾ෇͘͜ͱ͢
    ΒͰ͖ͳ͍

    View full-size slide

  19. ෼ੳ is grep …?

    View full-size slide

  20. What is Amazon Macie?
    • ػցֶशʹͯS3಺ͷػີσʔλΛࣗಈతʹݕ
    ग़ɺ෼ྨɺอޢ͢ΔηΩϡϦςΟαʔϏε
    • ݸਓ৘ใ (PII) ΍஌తࡒ࢈ͳͲͷػີσʔλ͕ೝ
    ࣝ͞ΕΔɻ
    • όʔδχΞͱΦϨΰϯͰར༻Մೳ
    https://docs.aws.amazon.com/ja_jp/macie/latest/userguide/what-is-macie.html

    View full-size slide

  21. ඦฉ͸Ұݟʹ͔ͣ͠

    View full-size slide

  22. ATTENTION !
    • ઃఆखॱ͸؆୯͗͢ΔͷͰ঺հ͠·ͤΜɻ

    AWSϒϩάͰྲྀΕΛ֬ೝ͍ͯͩ͘͠͞ɻ

    https://aws.amazon.com/jp/blogs/news/launch-amazon-macie-securing-your-s3-buckets/
    • CloudTrail΋ྑ͍ײ͡ʹධՁͯ͘͠Ε·͕͢ɺ

    ࠓճ͸঺հ͠·ͤΜɻ

    ઃఆ͢Δͱ͙͢ʹݟΕΔͷͰɺମײ͍ͯͩ͘͠͞

    View full-size slide

  23. case1: logs/linux_syslog

    View full-size slide

  24. case2: PII Priority / moderate

    View full-size slide

  25. ΞϥʔτʂϨϙʔτʂͷલʹ
    ؀ڥͷบ΍ੑ࣭Λ஌Ζ͏ʂ

    View full-size slide

  26. མͱ݀͠ͷڞ༗

    View full-size slide

  27. Pitfall
    • MacieͷධՁλΠϛϯά͸ɺόέοτઃఆ࣌ͱ
    s3ΦϒδΣΫτ͕Put͞Εͨ࣌
    • Macie͕࢖͏αʔϏεϩʔϧ͸ɺ
    CloudFormationͰఏڙ͞Ε͍ͯΔ
    ελοΫΛޡͬͯফ͢ͱ
    ෮ؼ·ͰͷؒʹPut͞ΕͨObject͸ධՁ͞Εͳ͍

    View full-size slide

  28. Α͋͘Δޡղ

    View full-size slide

  29. MacieͬͯS3όέοτΛ
    ධՁ͢ΔΜͰ͠ΐʁ
    S3͸৘ใ࿙͍͕͑৺഑

    View full-size slide

  30. Cause is
    a misconfiguration of S3
    • WWE Leaks 3 Million Emails

    https://mackeepersecurity.com/post/world-wrestling-entertainment-leaks-3-
    million-emails
    • Dow Jones customer data exposed in cloud error

    http://thehill.com/policy/cybersecurity/342333-dow-jones-customer-data-exposed-
    in-cloud-error
    • VerizonՃೖऀ1400ສਓͷݸਓ৘ใɺۀ຿ҕୗઌ͕
    ʮແ๷උঢ়ଶʯͰΫϥ΢υʹอଘ

    http://www.itmedia.co.jp/enterprise/articles/1707/13/news055.html

    View full-size slide

  31. Α͋͘Δ৺഑

    View full-size slide

  32. AWS MacieͰ
    ػີ৘ใಡΈऔΒͤͯ
    େৎ෉ͳͷʁ

    View full-size slide

  33. Third Party Authentication
    ~See AWS Artifact~
    • ISO 27001:2013 Certification
    • ISO 27017:2015 Certification
    • ISO 27018:2014 Certification
    • ISO 9001:2015 Certification
    • PCIDSSv3.2
    • SoC1/2͸ݸผʹௐ΂ͯͶΜ(ཁผ్৘ใೖྗ)

    View full-size slide

  34. ·ͱΊ
    • ׬ᘳͳ΋ͷ͸ͳ͍ɻ

    ͔֬Β͠͞ΛੵΈॏͶΔ͜ͱɻ
    • ਓྗͰͷఆٛʹ͸ϛε΍ݶք͕͋Δɻ

    ੵۃతʹػցͷྗʹཔΓͭͭڍಈΛ؍࡯ͯ͠ɺ

    ΧόʔͰ͖ͳ͍ͱ͜Ζ͸ผͷ΋ͷͰϑΥϩʔ
    • νϟϨϯδ͢Δ͜ͱɻ

    ΍ͬͯΈͯॳΊͯؾ෇͘͜ͱ͕͋Δ(ص্ݕ౼͸୹͘)

    View full-size slide

  35. ΋͏Ұ౓໰͍·͢

    View full-size slide

  36. ΈΜͳʂ
    ΍ͬͯΔ͔͍ʁ

    View full-size slide