Git Product home page Git Product logo

nefarious.jl's Introduction

Nefarious

Package demonstrating why julia --project in a directory you don't trust can be dangerous, which is why Julia doesn't do julia --project automatically, instead requiring you to explicitly add the flag, which constitutes a conscious indication that you trust the project you are in.

Try it out (if you dare!):

$ git clone https://github.com/StefanKarpinski/Nefarious.jl.git
$ cd Nefarious.jl
$ julia -q --project
julia> using JSON
Haha, gotcha!

The same attack could easily be expanded to all common package names by just replicating what has been done here for JSON. If you start a julia process in this directory with --project you cannot safely load any packages. If you have a ~/.julia/config/startup.jl file and it loads any packages, then just starting julia --project in this directory could execute arbitrary code.

nefarious.jl's People

Contributors

stefankarpinski avatar

Stargazers

ebigram avatar Soc Virnyl S. Estela avatar Anant Thazhemadam avatar Letícia Maria Pequeno Madureira avatar STYLIANOS IORDANIS avatar Zhao Xiaohong avatar Arsh Sharma avatar Jake Ireland avatar GAURAV avatar Peter avatar Jan Vandepitte avatar pixor avatar Ciarán O'Mara avatar Xiu-zhe (Roger) Luo avatar  avatar

Watchers

 avatar James Cloos avatar  avatar

nefarious.jl's Issues

Julia permission flags for security

Deno takes an interesting approach to addressing this security issue. It provides permission flags such as
--allow-read=some_folder
--allow-write
--allow-net
--allow-run
--allow-all
...

Julia can provide these kinds of flags in the future, if it wants to stay in the secure side of the things.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.