Skip to content

sei: packages potentially using incorrect mustache snippet escaping #7641

@efd6

Description

@efd6

The mustache templating system used by ingest pipelines has two levels of escaping available, not escaped (triple stache) and HTML escaped (double stache) — see man mustache under "tag types: variables". This can lead to data corruption, particularly in cases where an operating system has chosen to use a character requiring escaping in its path syntax (example here).

In general we should not be HTML escaping fields for ingestion, so it is nearly always the case that we should be using the triple stache. This is not the case; this is a list of SEI packages that have at least one instance of a double stache in a template snippet:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Team:Security-Deployment and DevicesDEPRECATED Deployment and Devices Security team [elastic/sec-deployment-and-devices]Team:Security-Linux PlatformLinux Platform Security team [elastic/sec-linux-platform]Team:Security-ScalabilitySecurity Integrations Scalability teamTeam:Security-Service IntegrationsSecurity Service Integrations team [elastic/security-service-integrations]Team:Security-Windows PlatformSecurity Windows Platform team [elastic/sec-windows-platform]Team:Sit-CrestCrest developers on the Security Integrations team [elastic/sit-crest-contractors]technical-debt

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions