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

20171222_owasp_okinawa

 20171222_owasp_okinawa

okazaki hajime

December 22, 2017
Tweet

More Decks by okazaki hajime

Other Decks in Technology

Transcript

  1. 自己紹介(2) ◎ 職歴 ◉ 情報系大学卒業 ◉ LAMP環境のフロントエンジニア:3年位 ◉ その後、LAMP環境インフラエンジニア :3年位

    ◉ その後、Webアプリケーションの脆弱性診断 :1年位 ◉ その後、サイバーエージェントに入社 (2015/6〜)
  2. Cloudtrail log sample "CloudTrailEvent": "{\"eventVersion\":\"1.05\",\"userIdentity\":{\"type\":\"AssumedRole\",\"princi palId\":\"xxxx:xxxx\",\"arn\":\"arn:aws:sts::xxxxx:assumed-role/adtech-aws -xxxx/xxxx\",\"accountId\":\"xxxxx\"},\"eventTime\":\"2017-12-11T08:14:14Z\", \"eventSource\":\"signin.amazonaws.com\",\"eventName\":\"ConsoleLogin\", \"awsRegion\":\"us-east-1\",\"sourceIPAddress\":\"xxxxx\",\"userAgent\":\" Mozilla/5.0

    (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36\",\"requestParameters\":null,\"responseElements\":{\"Console Login\":\"Success\"},\"additionalEventData\":{\"LoginTo\":\"https://console.a ws.amazon.com/console/home\",\"MobileVersion\":\"No\",\"MFAUsed\":\"No \",\"SamlProviderArn\":\"arn:aws:iam::xxxxx:saml-provider/adtech-aws-xx xxx\"},\"eventID\":\"xxxxx\",\"eventType\":\"AwsConsoleSignIn\",\"recipient AccountId\":\"xxx\"}", "EventName": "ConsoleLogin", "Resources": [], "timestamp": "2017-12-11T17:14:14+0900" },
  3. Scout2 git clone https://github.com/nccgroup/Scout2 cd Scout2 pip install -r requirements.txt

    python setup.py install #実行 /usr/local/bin/Scout2 --profile productA --report-dir /home/scout2/www/productA/ --force 参考: https://nccgroup.github.io/Scout2/
  4. ポートチェック結果 xx.xx.xx.xx 4000/tcp open ssl/remoteanything? xx.xxx.xx.x 80/tcp open http Apache

    httpd 2.2.29 xx.xx.xx.x 443/tcp closed https xx.xx.xxx.xxx 80/tcp filtered http xx.xx.xxx.xxx 110/tcp filtered pop3 xx.xx.xxx.x 25/tcp filtered smtp xx.xx.xxx.xx 143/tcp filtered imap xx.xx.xxx.xxx 80/tcp filtered http *nmapを実行する前に「AWS侵入テスト申請」出しましょう
  5. 結果 参考: https://adtech.cyberagent.io/techblog/archives/3810 Unprotected port on EC2 instance i-0xxxxxx is being

    probed. Unprotected port on EC2 instance i-0yyyyyy is being probed. Unprotected port on EC2 instance i-0zzzzzz is being probed. Unprotected port on EC2 instance i-0aaaaaa is being probed.
  6. 結果 参考: https://adtech.cyberagent.io/techblog/archives/3810 Unprotected port on EC2 instance i-0xxxxxx is being

    probed. Unprotected port on EC2 instance i-0yyyyyy is being probed. Unprotected port on EC2 instance i-0zzzzzz is being probed. Unprotected port on EC2 instance i-0aaaaaa is being probed. 「ポート22がインターネットに  公開されているよ」