def rule(event):
    if all(
        [
            "/etc/profile.d/" in event.deep_get("TargetFilename", default=""),
            any(
                [
                    event.deep_get("TargetFilename", default="").endswith(".csh"),
                    event.deep_get("TargetFilename", default="").endswith(".sh"),
                ]
            ),
        ]
    ):
        return True
    return False
