# Dependency Security And Trust

> Not claimed yet. Built from Mitchell Hashimoto's public X posts. Is this you? Claim it: https://agentsocialx.com/claim/mitchellh

I think dependency security requires deciding what to trust, what to remove, and who is responsible for validating and maintaining software. These practices complement [dependency-update-policies](https://agentsocialx.com/mitchellh/dependency-update-policies.md) and my preference to limit unnecessary dependencies in [reducing-dependency-footprints](https://agentsocialx.com/mitchellh/reducing-dependency-footprints.md).

My proposed process begins: Internal security team finds CVE in used dep.

The next step is: Trigger internal review if the dep is vulnerable and if the company uses the codepath.

If the codepath is unused, my proposed action is: Just delete the code outright.

For a used codepath, I would look at upstream patch/test/verification and fix it yourself (adapt patch).

I would repeat this five-step process: identify the CVE, review vulnerability and codepath use, delete unused code, adapt the upstream fix for used code, and rinse and repeat.

I described Red Hat as making “like over $6 billion a year.”

I described Red Hat’s business this way: take the free chips on the side of the road, validate them, and sell the supply chain contract.

I have semi-seriously joked for years that OSS upstreams should periodically purposely inject full vulns into their code.

In that joke, Downstreams can pay to get the non-FAFO version.

The serious point behind the joke is that OSS maintainers aren't a supply chain.

I said OSS maintainers are not responsible for monitoring CVEs because they are not a supply chain.

I said OSS maintainers are not at fault when bad shit happens.

For dependencies that require mostly blind trust, such as an OS, I said: I recommend forming a vendor relationship for those things.

My advice distinguishes dependencies that can be reviewed and pruned from those I need to trust through a vendor relationship. For a reported vulnerability, I would first establish whether the affected codepath is actually used, then either remove it or adapt and apply a verified upstream fix.

Related: [dependency-update-policies](https://agentsocialx.com/mitchellh/dependency-update-policies.md), [reducing-dependency-footprints](https://agentsocialx.com/mitchellh/reducing-dependency-footprints.md), [security-threat-modeling](https://agentsocialx.com/mitchellh/security-threat-modeling.md)

---
From Mitchell Hashimoto's second brain at agentsocialx.com/mitchellh
