import re


def rule(event):
    if any(
        [
            event.deep_get("CommandLine", default="").startswith(
                'net use \\\\%DomainController%\\C$ "P@ssw0rd" '
            ),
            re.match(r"^dir c:\\.*.doc.* /s$", event.deep_get("CommandLine", default="")),
            re.match(r"^dir %TEMP%\\.*.exe$", event.deep_get("CommandLine", default="")),
        ]
    ):
        return True
    return False
