def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("TargetFilename", default="").startswith(
                        "/Library/StartupItems/"
                    ),
                    event.deep_get("TargetFilename", default="").startswith(
                        "/System/Library/StartupItems"
                    ),
                ]
            ),
            event.deep_get("TargetFilename", default="").endswith(".plist"),
        ]
    ):
        return True
    return False
