SES-shim
colors.js
SES-shim | colors.js | |
---|---|---|
13 | 52 | |
736 | 5,153 | |
0.7% | - | |
9.9 | 0.0 | |
about 10 hours ago | 11 months ago | |
JavaScript | JavaScript | |
Apache License 2.0 | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
SES-shim
-
Malicious libraries can steal all your application secrets in Elixir
I used E in the 90s: http://erights.org/
I haven't kept up with newer systems but I've heard of https://github.com/endojs/endo and just came across http://reports-archive.adm.cs.cmu.edu/anon/home/anon/isr2017... (which says "in the style of the E programming language" -- that's as far as I've read) while looking that up.
WebAssembly was designed to follow the same capability security principles. CHERI too as someone else just brought up.
-
Building an Extension System on the Web
There are other potential solutions I haven’t explored close enough (like Endo and SES), or completely omitted as they’re based on an imperfect blacklist-based approach to security (like sandboxed WebWorkers). However, the mentioned 4 solutions are the top contenders, at least in my mind.
-
Harvesting credit card numbers and passwords from your site
I don't know why you are being silently downvoted, as I think it is worth talking about the potential of using static analysis to improve things.
One promising approach is Endo[0] which "uses LavaMoat to automatically generate reviewable policies that determine what capabilities will be distributed to third party dependencies."
[0] https://github.com/endojs/endo
-
Show HN: Run unsafe user generated JavaScript in the browser
Agoric moved forward and Realms gave way to SES
https://github.com/endojs/endo/tree/master/packages/ses
And Endo is a set of tools (being) built around it to make it more practical for particular usecases
-
Deno 1.26
Yea you could restrict the app by whitelisting only the network services and folders that it will use and that's pretty valuable though at least on Linux could already easily be achieved otherwise. It's good that Deno makes it easy but let's be honest, most people will just pass -A.
I'd love to see a permissions system on a library basis. It would ask the first time a dependency is added and when a new permission is requested after an update. Javascript doesn't make that easy though by being so dynamic. SES could maybe help: https://github.com/endojs/endo/blob/master/packages/ses/READ...
-
Node runtime that sandboxes all NPM dependencies by default
I was poking around on the internet a bit earlier and I found this project. It looks pretty cool, and I figured perhaps a few of y'all might find it cool too!
I have no idea if it actually sandboxes networking by default. This other project, endo[0], seems to add some of that functionality.
Regardless of the maturity though, it makes me excited to see this type of work getting done now!
(What made me want to research it was this[1] thread from the other day.)
0: https://github.com/endojs/endo
1: https://news.ycombinator.com/item?id=30215212
-
Open source maintainer pulls the plug on NPM packages colors and faker, now what
Fortunately the problem could become more tractable if something like SES / Endo takes off:
"Endo protects program integrity both in-process and in distributed systems. SES protects local integrity, defending an application against supply chain attacks: hacks that enter through upgrades to third-party dependencies. Endo does this by encouraging the Principle of Least Authority. ... Endo uses LavaMoat to automatically generate reviewable policies that determine what capabilities will be distributed to third party dependencies."
https://github.com/endojs/endo
- Is metamask running on JavaScript?
- Embedded malware in RC (NPM package)
-
Researcher hacks over 35 tech firms in novel supply chain attack
Yeah. JavaScript is probably the closest to being there (with things like SES[0], LavaMoat[1], etc.) but we're not quite there yet. It's just shocking that this sort of thing is as seemingly obscure as it is; it's like the whole industry has collectively thrown up their hands and said code execution is unavoidably radioactively dangerous. (While simultaneously using package managers that... well.) But it doesn't have to be!
[0] https://github.com/Agoric/ses-shim
[1] https://github.com/LavaMoat/LavaMoat
colors.js
-
Mitigate the hidden security risks of open source software libraries
However, it's unlikely that the majority of users actually visit GitHub at https://github.com/Marak/colors.js to review the code, even at a high level. Most developers tend to rely on the assurance that open source software is generally safe to use.
- when u finally found that ONE repo which fits your needs and is not outdated but you have issues to raise
-
Marak: The reports of my death have been greatly exaggerated
> A new feature was added to the colors.js project for generating cool ASCII Art American Flags. Unfortunately, this feature was not bug-free and some test code slipped into the release causing issues downstream. Nobody is perfect. Everyone makes mistakes from time to time.
https://github.com/Marak/colors.js/commits/master shows 4 commits and 2 releases. Does not seem like a simple mistake
> As per our internal open-source development process, I opened an Issue in colors to track the bug as soon as it was confirmed. It happened to be a weekend [...] I tagged some other open-source developers I've worked with in the past to see if they had time to assist and closed the browser tab.
- Recognize that there are many reasons that people create open source work...its a form of their self expression like Michelangelo or Salvador Dali, and nobody should complain if a metaphoric Jackson Pollock, decides to make their work resemble paint splatter instead of an architectural masterpiece.
- this thread will forever be living proof that the entire node ecosystem is a fucking dumpster fire.
- CVE-2021-23567
-
JavaScript News and Updates of January 2022
Early this month, the malicious attack on free-to-use libraries, namely color.js and faker.js, created a real uproar in the development community. These tools are used in thousands of projects and their downloading rate from npm is estimated in millions per week. To everyone’s surprise, it turned out to be an inside job. Marak Squires, the creator of these libraries, intentionally committed malicious code to his projects and published updated codebases on GitHub and npm. It is said that this sabotage was caused by unsuccessful attempts of Mr. Squires to monetize his projects. Fortunately, malicious packages were quickly removed and the attacker’s account was suspended. The story sparked a new wave of discussion in the development community on possible steps to make the development and maintenance of open-source projects more sustainable.
-
colors.js VS ansis - a user suggested alternative
2 projects | 24 Jan 2022
-
Marak, the guy behind the recent breaking of faker.js, colors.js, etc., claims that it was a "programming mistake" and wants Github to unban him.
See: https://github.com/Marak/colors.js/issues/285
-
Colors.js in dart.
Ever used colors.js? How about the same in dart?
What are some alternatives?
rfcs - Public change requests/proposals & ideation
chalk - 🖍 Terminal string styling done right
Swift Argument Parser - Straightforward, type-safe argument parsing for Swift
GHSA-5rqg-jm4f-cqx7
GHSA-g2q5-5433-rhrf
aws-cdk - The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
sandworm-guard-js - Easy auditing & sandboxing for your JavaScript dependencies 🪱
wasi-libc - WASI libc implementation for WebAssembly
linux - Kernel source tree for Raspberry Pi-provided kernel builds. Issues unrelated to the linux kernel should be posted on the community forum at https://forums.raspberrypi.com/
proposal-built-in-modules
vrite - Open-source developer content platform
cache - Cache dependencies and build outputs in GitHub Actions