Skip to content

Commit

Permalink
Added L7 payload (#429)
Browse files Browse the repository at this point in the history
Signed-off-by: Afek Berger <[email protected]>
  • Loading branch information
afek854 authored Jan 20, 2025
1 parent 7db4801 commit 3dc88b0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions armotypes/runtimeincidents.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,12 @@ type MalwareAlert struct {

type HttpRuleAlert struct {
Request struct {
Method string `json:"method,omitempty" bson:"method,omitempty"` // e.g., "GET"
URL string `json:"url,omitempty" bson:"url,omitempty"` // e.g., "/index.html"
Header map[string]string `json:"header,omitempty" bson:"header,omitempty"` // e.g., "Content-Type" -> ["application/json"]
Body string `json:"body,omitempty" bson:"body,omitempty"` // e.g., "<html>...</html>"
Proto string `json:"proto,omitempty" bson:"proto,omitempty"` // e.g., "HTTP/1.1"
Method string `json:"method,omitempty" bson:"method,omitempty"` // e.g., "GET"
URL string `json:"url,omitempty" bson:"url,omitempty"` // e.g., "/index.html"
Header map[string]string `json:"header,omitempty" bson:"header,omitempty"` // e.g., "Content-Type" -> ["application/json"]
Body string `json:"body,omitempty" bson:"body,omitempty"` // e.g., "<html>...</html>"
Proto string `json:"proto,omitempty" bson:"proto,omitempty"` // e.g., "HTTP/1.1"
Payload string `json:"payload,omitempty" bson:"payload,omitempty"` // e.g., "'OR 1=1"'"
} `json:"request,omitempty" bson:"request,omitempty"`

Response struct {
Expand Down

0 comments on commit 3dc88b0

Please sign in to comment.