import re


def rule(event):
    if any(
        [
            event.deep_get("TargetObject", default="").endswith(
                "Software\\Classes\\exefile\\shell\\runas\\command\\isolatedCommand"
            ),
            all(
                [
                    event.deep_get("TargetObject", default="").endswith(
                        "Software\\Classes\\Folder\\shell\\open\\command\\SymbolicLinkValue"
                    ),
                    re.match(
                        r"-1[0-9]{3}\\\\Software\\\\Classes\\\\",
                        event.deep_get("Details", default=""),
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
