Skip to contentSkip to conversation

Macro supply chains

DISCUSSION Rich Persaud 1 participant 1 message Feb 13, 2019

lore
Share & tools
lore
#0 lore raw

Synopsys, which owns both Coverity and Black Duck, wrote about software supply-chain integrity for a library with almost two million downloads per week:

"EventStream, a highly popular JavaScript library, was compromised with the addition of a third-party dependency, flatmap-stream, containing encrypted malicious code. The attack targeted other Node.js libraries used in cryptocurrency wallets." "Keep a bill of materials (BoM), a list of components and dependencies in your codebase. Just knowing what your code depends on will help make you aware of the third-party risks that you might be exposed to."

Are there existing best practices for tracking and maintaining macros which originated in other open-source communities, e.g. QEMU or Linux? Some Xen macros have diverged [2][3][4] from the versions used by other communities. Would such macros benefit from a documented relationship with upstream, e.g.

- "Ignore upstream changes"
- "Mirror upstream changes"
- "Review upstream changes"

For the latter case, build/test tooling could trigger manual macro review when a change is detected in an upstream dependency. Which other cases should be considered?

Rich

[1] Compromised npm packages lead to supply chain attack

https://www.synopsys.com/blogs/software-security/malicious-dependency-supply-chain/

https://github.com/dominictarr/event-stream/issues/116

[2] bitops.h

http://xenbits.xen.org/gitweb/?p=xen.git;a=history;f=xen/include/xen/bitops.h;h=a103e490894829a445cc743b98f8956b7d44e022;hb=HEAD

https://github.com/torvalds/linux/commits/master/arch/x86/include/asm/bitops.h

[3] list.h

http://xenbits.xen.org/gitweb/?p=xen.git;a=history;f=xen/include/xen/list.h;h=1387abb21192668f4103620520cf4256902a45aa;hb=HEAD

https://github.com/torvalds/linux/commits/master/include/linux/list.h

[4] delay.h

http://xenbits.xen.org/gitweb/?p=xen.git;a=history;f=xen/include/xen/delay.h;h=9d70ef035fc20bb6708a5ff33eb83a55c6ad460c;hb=HEAD

https://github.com/torvalds/linux/commits/master/include/linux/delay.h

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel