def rule(event):
    if all(
        [
            "Get-content " in event.deep_get("ScriptBlockText", default=""),
            "foreach" in event.deep_get("ScriptBlockText", default=""),
            "[System.Net.Dns]::GetHostEntry" in event.deep_get("ScriptBlockText", default=""),
            "Out-File" in event.deep_get("ScriptBlockText", default=""),
        ]
    ):
        return True
    return False
