def rule(event):
    if all(
        [
            "[Credentials]" in event.deep_get("ScriptBlockText", default=""),
            "[Veeam.Backup.Common.ProtectedStorage]::GetLocalString"
            in event.deep_get("ScriptBlockText", default=""),
            "Invoke-Sqlcmd" in event.deep_get("ScriptBlockText", default=""),
            "Veeam Backup and Replication" in event.deep_get("ScriptBlockText", default=""),
        ]
    ):
        return True
    return False
