Street Workoutãæ¥æ¬ã«åºããããé«æ©ï¼æè¡1課ï¼ã§ããè¿é ã¯éæ£ã®ããå ¬åãéããã¦ãã¦å¯ããéãã§ãã
ãã¦ä»åã¯ã¯ã©ã¦ã対å¿åWAFãµã¼ãã¹ã®ãImperva社ã®SecureSphereããç´¹ä»ãã¾ãã
è¨æ£
Imperva社ã®"SecureSphere"ãã誤ã£ã¦Imperva社ã¨åã"Imperva"ã¨ç´¹ä»ãã¦ããã¾ããã失礼ãããã¾ããã 2015.05.01(Fri)
Impervaã¨ã¯ä½ã
SecureSphereã¯ãImperva社ãæä¾ãã¦ããã¯ã©ã¦ãåWebã¢ããªã±ã¼ã·ã§ã³ãã¡ã¤ã¢ã¦ã©ã¼ã«ã§ãã
以åãããã¼ãã¦ã§ã¢çã®è£½åã®ã¿ããã¾ããããæ°ãããã¼ã¸ã§ã³ããAWSãã©ãããã©ã¼ã ã«å¯¾å¿ãã¾ããã
Gartner社ã2014å¹´ã«çºè¡¨ãã"Magic Quadrant for Web Application Firewalls"ã«ããã¦ã¯ãæ¥çãç½å¼ãã"LEADERS"ã®ä½ç½®ä»ãã«ãImperva社ã®ã¿ãé¸ã°ãã¦ãã¾ãã
ï¼åè:http://blog.imperva.com/2014/06/the-gartner-web-application-firewalls-magic-quadrant-is-out.htmlï¼
WAFã¨ã¯ä½ã
ããããWAFã¨ã¯ä½ã®ã§ããããWAFã¨ã¯ã¢ããªã±ã¼ã·ã§ã³ã¬ãã«ã§ç®¡çãè¡ããµã¼ãã¹ã§ãã
ã¢ããªã±ã¼ã·ã§ã³ã®èå¼±æ§ãä¿è·ãããã®ã§ã¯ãªããæ»æã®å½±é¿ãä½æ¸ãããã®ã§ãã
詳ããã¯IPAã®åºãã¦ããè³æã御覧ãã ããã
ãµã¼ãã¹ã®ã¿ã¤ã
SecureSphereã«ã¯ãAWSã®åå¥ã®VPCå ã«ãããã¤ãããã®ã¨ãSaaSçã®2ã¤ã®ã¿ã¤ããããã¾ãã
ä»åã¯VPCå ã«ãããã¤ããã¿ã¤ãããç´¹ä»ãã¾ãã
æä¾å½¢æ
VPCå ã«ãããã¤ããã¿ã¤ãã«ã¯ãBYOLã¨On-Demandã®2ã¤æä¾å½¢æ ãããã¾ãã
ç¹å¾´ã¯ãããã以ä¸ã®éãã§ãã
BYOL | On-Demand | |
課éä½ç³» | å¹´åä½ | 1æéåä½ |
Auto-Scalingå¯¾å¿ | äºåè³¼å ¥ | äºå¾ç²¾ç® |
ãµãã¼ãã¬ãã« | é¸æå¯è½ | é¸æä¸å¯è½ |
ãµãã¼ãçªå£ | å½å 代çåºï¼æ¥æ¬èªï¼ | Imperva社çªå£ï¼è±èªï¼ |
ãã£ã¹ã«ã¦ã³ã | ⯠| â |
対å¿æ©è½ | éããªã | |
ã©ã¤ã»ã³ã¹ã®æ··å¨ | æªå¯¾å¿ |
BYOLçã§ã¯ã¾ããå½å 代çåºããã©ã¤ã»ã³ã¹ãè³¼å ¥ããCloudFormationãããããã¤ãè¡ãã¾ããAuto-Scaling使ç¨ã®ããã«ã¯äºåã«ã©ã¤ã»ã³ã¹ãè³¼å ¥ããå¿ è¦ãããã¾ãã
対ãã¦On-Demandçã§ã¯ãAmazon MarketplaceããAMIãåå¾ããæ¢åã®ç°å¢ã«æä½æ¥ã§ãããã¤ãè¡ãã¾ããAuto-Scalingæã«ã¯äºåä½æ¥ã¯ä¸è¦ã§ãã¤ã³ã¹ã¿ã³ã¹å¢å åãå¾æ¥ç²¾ç®ãã¾ãã
ã©ã¡ããããè¯ãã¨ã¯ä¸æ¦ã«ã¯è¨ãã¾ãããããããã¤ãCloudFormationã§èªååããã¦ãããæ¥æ¬èªã§ãµãã¼ããåãããã¨ãã§ããBYOLçããªã¹ã¹ã¡ãã¾ãã
ãããã¤
ã§ã¯ãã£ããSecureSphereãæ§ç¯ãã¦ã¿ã¾ããããBYOLçããç´¹ä»ãã¾ããæ§æå³ã¯ãã¡ãã§ãã
MXã¤ã³ã¹ã¿ã³ã¹ã¯ç®¡çç¨ã®ãµã¼ãã§ãããå種ãµã¼ãã¹ã®è¨å®ã¯ãã®ãµã¼ãã§è¡ãã¾ããGWã¯ã²ã¼ãã¦ã§ã¤ã§ãããå®éã«ãã©ãã£ãã¯ãæ¤æ»ããã®ã¯ãã¡ãã®ãµã¼ãã§è¡ãã¾ãã
ELBã«ãã£ã¦æ¯ãåããããã¦ã¼ã¶ããã®ãªã¯ã¨ã¹ãã¯GWã®æ¤æ»ãåãããã¹ãããã±ããã®ã¿ãã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¸åããã¾ãã
GWã¯ãªã¼ãã¹ã±ã¼ã«ãããã¨ãã§ããã®ã§ãå¦çã®è² è·ã«å¿ãã¦ã¤ã³ã¹ã¿ã³ã¹ã®å°æ°ãèªåã§å¢æ¸ãã¦ããã¾ãã
VPCããµãããã,ELBçã¯æåã§ä½æããå¿ è¦ãããã¾ãããMX,GWã®ã¤ã³ã¹ã¿ã³ã¹ãã»ãã¥ãªãã£ã°ã«ã¼ããAuto Scalingã®æ§ç¯ã¯å ¨ã¦CloudFormationããè¡ãã¾ãã
VPCãä½æãã
ã¾ãVPC,åãµãããã,NATã¤ã³ã¹ã¿ã³ã¹,ELBãä½æãã¦ãã ããã
MX,GWãé ç½®ãããµããããã®ã«ã¼ãã£ã³ã°ã¯ãä¸æ¦ããã©ã«ãã²ã¼ãã¦ã§ã¤ãNATã«åãã¦ãã ãããMX,GWã®æ§ç¯æã«ã¯å¤é¨ã¨ã®çéãå¿ è¦ã¨ãªããNATãçµç±ããªãã¨ã¨ã©ã¼ãçºçãã¾ãã
MXãæ§ç¯ãã
ã¾ã管çç¨ãµã¼ãã®MXãæ§ç¯ãã¾ããããCloudFormationã®ã¡ãã¥ã¼ãã"Create Stack"ãé¸ã³ãæ§ç¯ç¨ã®JSONãã¡ã¤ã«ãã¢ãããã¼ããã¾ãã
ãã¡ã¤ã«ãèªã¿è¾¼ã¾ãããå種ãã©ã¡ã¼ã¿ãåãã¦ããã¾ããå ã»ã©ä½æããMXç¨ã®ãµããããID,ã©ã¤ã»ã³ã¹ãã¼çãåãã¦ããã¾ãã
ãã©ã¡ã¼ã¿ãåãçµãã£ãã"Create"ãæ¼ãã¦ãã ããã
以ä¸ã®ç»é¢ãã§ã¦ãã´ãªã´ãªã¨MXãµã¼ããã»ãã¥ãªãã£ã°ã«ã¼ããä½æããã¾ãã
ã¢ã«ã¦ã³ãè¨å®
ã¹ã¿ãã¯ã"CREATE_COMPLETE"ã«ãªã£ããããµããããã®ããã©ã«ãã²ã¼ãã¦ã§ã¤ãã¤ã³ã¿ã¼ãããã²ã¼ãã¦ã§ã¤ã«ããMXãµã¼ãã®Public IPã®ãã¼ãçªå·8083ã«ã¢ã¯ã»ã¹ãã¦ãã ããã
ããã¨adminã¦ã¼ã¶ä½æã®ç»é¢ã表示ãããã®ã§ããã¹ã¯ã¼ããå ¥åãã¾ãã
æå¾ã«åã³ã©ã¤ã»ã³ã¹ã³ã¼ããã¢ãããã¼ãããã°å®äºã§ãã
GWã®æ§ç¯
次ã«GWãæ§ç¯ãã¾ããããMXã¨åãããã«CloudFormationããä½æãã¾ããMXã¨ç°ãªãã®ã¯ãGWã®å ´åã¯è¤æ°ãµãããããæå®ã§ãã¾ããZone-A,Cãã¨ã«1ã¤ãã¤è¨å ¥ãããã¨ã§ã2ã¤ã®ãµããããä¸ã§GWãèµ·åãã¾ãã
MXä¸ã§ã®è¨å®
GWãæ§ç¯ã§ãããMXã§è¨å®ãè¡ãã¾ãã
MXã®ã¡ãã¥ã¼ç»é¢ãããï¼»ã»ããã¢ãã]-[ãµã¤ã]-[ã¢ããªã±ã¼ã·ã§ã³]ã¸ç§»ããã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã®IPã¢ãã¬ã¹ãè¨å ¥ãã¾ãã
è¨å ¥ãæ¸ãã ããä¿åããæ¼ãã¦è¨å®ãä¿åãã¦ãã ããã次ã«[ãªãã¼ã¹ãããã·]ã¸ç§»ããåã¾ã¼ã³ãã¨ã«ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã®IPãè¨å ¥ãã¦ãã ããã
ããã§MXã®è¨å®ã¯å®äºã§ãã
ELBã®è¨å®
æå¾ã«ELBã®ãã«ã¹ãã§ãã¯ã®"Ping Target"ã"TCP:80"ã«è¨å®ãã¦ãã ããã
ããã«ã¦ãããã¤ã¯å®äºã§ããå°ãçµã¤ã¨GWãµã¼ãã"InService"ã«ãªãã¾ãã
GWã¯CloudFormationã«ãã£ã¦èªåçã«Auto Scalingã°ã«ã¼ãã«è¿½å ããã追å ãããã¤ã³ã¹ã¿ã³ã¹ã¯èªåçã«ELBã«è¿½å ããã¾ãã
ãããã¤ãçµãã£ãã¨ããã§ãã©ã¦ã¶ãããELBçµç±ã§ã¢ããªã±ã¼ã·ã§ã³ã«ã¢ã¯ã»ã¹ãã¦ã¿ã¾ãããã
ç¡äºã¢ã¯ã»ã¹ã«æåãã¾ããï¼ï¼ï¼
æ»æãã¦ã¿ã
SecureSphereã®åä½ç¢ºèªããã¦ã¿ã¾ããããä¸è¨ã®éãã¢ã¯ã»ã¹ããWordPressã®ãã°ã¤ã³ç»é¢ã«XSSãè¡ã£ã¦ã¿ã¾ãã
http://[ELB DNS Name]/wp-login.php?id=<script>alert('XSS');</script>
ã¢ã¯ã»ã¹å¾ã« [ã¢ãã¿ã¼]-[ã¢ã©ã¼ã]ãè¦ã¦ã¿ã¾ããããã¨å ã»ã©ã®XSSãæ¤ç¥ããããããã¯ããããã¨ãåããã¾ãã
ã¾ã¨ã
ä»åã®è¨äºã§ã¯ãAWSã®VPCå ã«Impervaããããã¤ããSecureSphereãã©ã®ããã«åä½ããããè¦ã¦ã¿ã¾ããã
ãããã¤æ¹æ³ãCloudFormationã§èªååããã¦ããã®ã§ããã©ã¡ã¼ã¿ãå ¥åããã ãã§æ§ç¯ãè¡ããã¨ãã§ãã¾ãï¼AWSã«å¯¾å¿ããL7ã¬ãã«ã®ã»ãã¥ãªãã£ã¯æ°å°ãªãã®ã§ãä»å¾å¤§ããªæ¦å¨ã«ãªãã¨è¨ãã¾ãããã
ä»å¾ã¯ãã詳細ãªéç¨æ¹æ³ã«ã¤ãã¦ãç´¹ä»ãã¾ãã
Imperva社ã®SecureSphereã«èå³ã®ããæ¹ããã¾ãããæ¯éãåãåããã ããã
ããããããï¼