News for hackers. Stuff that matters.
Re:VSCode Security: Malicious Extensions Detected- More Than... by samatman on Monday May 22, 2023 @07:32AM (#36030070)
> No. Theming addons should not even be able to ask for those privileges.

That's not the principle of least privilege, that's a user rule, and it isn't necessarily a good one.

I can imagine, for example, a theming add-on which queries a weather API and picks colors based on that, perhaps displaying a nice weather bar in the status line.

Such a theme would need to be granted this privilege, which should ideally be restricted to a hosts list, such that the user could pick another weather endpoint, but the theme can't promise weather and give weather and Google Analytics or your choice of telemetry endpoint.

Re:VSCode Security: Malicious Extensions Detected- More Than... by robertlagrant on Monday May 22, 2023 @09:20AM (#36031082)
Agree, although what would be really useful is if the capability listed exactly what data will be queried from VSCode and sent to the remote endpoint.
Re:VSCode Security: Malicious Extensions Detected- More Than... by gcr on Monday May 22, 2023 @01:26PM (#36034201)
Something like a list of declared DNS domains the extension would like permission to access?