From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Subject: Re: package security auditing and isolation
Date: Thu, 06 Apr 2017 16:12:22 -0400 [thread overview]
Message-ID: <jwva87tb8v1.fsf-monnier+gmane.emacs.devel@gnu.org> (raw)
In-Reply-To: 8737dl1gol.fsf@lifelogs.com
> We have to operate openly, because it's the only practical choice other
> than forming a cabal or ignoring the problem.
Agreed.
> Heuristics are not what I had in mind.
You mentioned "finding the function calls that can be dangerous", which
to me sounds like the usual flawed approach of "anti-virus" looking for the
known exploits.
> a) Can the parse tree of a package be analyzed safely (without running
> code in the package)? Is it deterministic?
Yes, currently the reader is pretty much unaffected by Elisp code.
> b) If the parse tree of a package is analyzed, and only has whitelisted
> functions such as `string-equal' in it, does that make the package safe?
We have unsafep.el which tries to use such a white-list approach.
I doubt it's really bulletproof, but in any case I don't think you could
write a useful Elisp package with that subset.
[ IIRC it was introduced as part of ses.el to check safety of formulas
in SES spreadsheets, so full-generality was not a goal. ]
> c) Can the parse tree of a package be compared deterministically at two
> separate VCS checkpoints to find what's changed?
Yes, of course.
> d) Can the changes to the parse tree between two VCS checkpoints be
> signed by a reviewer?
Technically, yes, of course.
Stefan
next prev parent reply other threads:[~2017-04-06 20:12 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-06 14:15 package security auditing and isolation Ted Zlatanov
2017-04-06 14:48 ` Stefan Monnier
2017-04-06 14:57 ` Yuri Khan
2017-04-06 15:45 ` Ted Zlatanov
2017-04-06 18:19 ` Stefan Monnier
2017-04-06 19:26 ` Ted Zlatanov
2017-04-06 20:12 ` Stefan Monnier [this message]
2017-04-06 21:57 ` Ted Zlatanov
2017-04-07 6:58 ` Tim Cross
2017-04-06 20:17 ` Clément Pit-Claudel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwva87tb8v1.fsf-monnier+gmane.emacs.devel@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).