Skip to content

Commit 9c6f486

Browse files
h4l0genpoiana
authored andcommitted
Update decoding_payload_in_container.go
Signed-off-by: Kapil Sharma <[email protected]>
1 parent 9067d37 commit 9c6f486

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

events/syscall/decoding_payload_in_container.go

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,19 @@ limitations under the License.
1515
package syscall
1616

1717
import (
18-
"fmt"
1918
"os/exec"
2019

2120
"github.com/falcosecurity/event-generator/events"
2221
)
2322

24-
var (
25-
encodedPayload = "RmFsY28gaXMgbG92ZSEh"
23+
var _ = events.Register(
24+
DecodingPayloadInContainer,
25+
events.WithDisabled(), // this rules is not included in falco_rules.yaml (stable rules), so disable the action
2626
)
2727

28-
var _ = events.Register(DecodingPayloadInContainer)
29-
3028
func DecodingPayloadInContainer(h events.Helper) error {
3129
if h.InContainer() {
32-
cmd := exec.Command("sh", "-c", fmt.Sprintf("echo %s | base64 -d", encodedPayload))
33-
34-
if _, err := cmd.CombinedOutput(); err != nil {
35-
return err
36-
}
30+
cmd := exec.Command("base64", "-d")
3731
}
3832
return nil
3933
}

0 commit comments

Comments
 (0)