def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("ParentImage", default="").endswith("\\node.exe"),
                    event.deep_get("ParentImage", default="").endswith("\\bun.exe"),
                ]
            ),
            any(
                [
                    any(
                        [
                            event.deep_get("Image", default="").endswith("trufflehog.exe"),
                            event.deep_get("Image", default="").endswith("gitleaks.exe"),
                        ]
                    ),
                    any(
                        [
                            "trufflehog" in event.deep_get("CommandLine", default=""),
                            "gitleaks" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
