kubearmor / kubearmor-client

KubeArmor cli tool aka kArmor :robot:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Summary Json file not valid

rajaSahil opened this issue · comments

How to reproduce this issue?

  • Run karmor summary -o json --agg > summary.json
  • Validate summary.json file

Issue

  • Json file is not valid.
{
    "DeploymentName": "discovery-engine-6b6745d44d-njj4c",
    "PodName": "default",
    "ClusterName": "accuknox-agents",
    "Namespace": "app=discovery-engine",
    "Label": "discovery-engine",
    "ContainerName": "\n /usr/bin/containerd-shim-runc-v2\u0012\u000f/knoxAutoPolicy\u001a\u00011\"\u001cThu May 25 12:27:23 UTC 2023*\u0005Allow"
}
{
    "DeploymentName": "loadgenerator-85676b57b8-bc8zv",
    "PodName": "default",
    "ClusterName": "gms",
    "Label": "b22ed266681b2317618ce5c5c1d640cabb5d80a365228e4dfd9aac5ad2a0b17f",
    "ContainerName": "\n\t/bin/dash\u0012\u0015/usr/local/bin/locust\u001a\u00012\"\u001cFri May 26 01:31:41 UTC 2023*\u0005Block",
    "ProcessData": [
        {
            "Source": "/bin/sh",
            "Destination": "/etc/passwd",
            "Count": "9",
            "UpdatedTime": "Thu May 25 23:28:37 UTC 2023",
            "Status": "Allow"
        },
        {
            "Source": "/bin/sh",
            "Destination": "/",
            "Count": "27",
            "UpdatedTime": "Fri May 26 01:26:35 UTC 2023",
            "Status": "Allow"
        },
        {
            "Source": "/bin/sh",
            "Destination": "/etc/ld.so.cache",
            "Count": "18",
            "UpdatedTime": "Fri May 26 01:31:41 UTC 2023",
            "Status": "Allow"
        },
        {
            "Source": "/bin/sh",
            "Destination": "/run/containerd/io.containerd.runtime.v2.task/k8s.io/",
            "Count": "965",
            "UpdatedTime": "Fri May 26 01:26:35 UTC 2023",
            "Status": "Allow"
        },
        {
            "Source": "/bin/sh",
            "Destination": "/dev/null",
            "Count": "15",
            "UpdatedTime": "Fri May 26 01:26:35 UTC 2023",
            "Status": "Allow"
        },
        {
            "Source": "/bin/sh",
            "Destination": "/etc/group",
            "Count": "29",
            "UpdatedTime": "Fri May 26 01:26:35 UTC 2023",
            "Status": "Allow"
        }
    ]
}