Security-Guard 範例警示¶
-
傳送帶有非預期查詢字串的事件,例如
curl "http://helloworld-go.default.52.118.14.2.sslip.io?a=3"
這會傳回類似以下的輸出
Hello Secured World!
-
檢查警示
kubectl logs deployment/helloworld-go-00001-deployment queue-proxy|grep "SECURITY ALERT!"
這會傳回類似以下的輸出
...SECURITY ALERT! HttpRequest -> [QueryString:[KeyVal:[Key a is not known,],],]
-
傳送帶有非預期長網址的事件,例如
curl "http://helloworld-go.default.52.118.14.2.sslip.io/AAAAAAAAAAAAAAAA"
這會傳回類似以下的輸出
Hello Secured World!
-
檢查警示
kubectl logs deployment/helloworld-go-00001-deployment queue-proxy|grep "SECURITY ALERT!"
這會傳回類似以下的輸出
...SECURITY ALERT! HttpRequest -> [Url:[Segments:[Counter out of Range: 1,],Val:[Letters:[Counter out of Range: 16,],Sequences:[Counter out of Range: 1,],],],].