def rule(event):
    if all(
        [
            any(
                [
                    "ls" in event.deep_get("ScriptBlockText", default=""),
                    "get-childitem" in event.deep_get("ScriptBlockText", default=""),
                    "gci" in event.deep_get("ScriptBlockText", default=""),
                ]
            ),
            "-recurse" in event.deep_get("ScriptBlockText", default=""),
            any(
                [
                    ".pass" in event.deep_get("ScriptBlockText", default=""),
                    ".kdbx" in event.deep_get("ScriptBlockText", default=""),
                    ".kdb" in event.deep_get("ScriptBlockText", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
