JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for TB-SUPPORT Archives


TB-SUPPORT Archives

TB-SUPPORT Archives


TB-SUPPORT@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

TB-SUPPORT Home

TB-SUPPORT Home

TB-SUPPORT  August 2015

TB-SUPPORT August 2015

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: glexec for small VOs

From:

Gareth Roy <[log in to unmask]>

Reply-To:

Testbed Support for GridPP member institutes <[log in to unmask]>

Date:

Fri, 7 Aug 2015 10:31:02 +0000

Content-Type:

multipart/signed

Parts/Attachments:

Parts/Attachments

text/plain (152 lines) , smime.p7s (152 lines)

Hi Ian,

I think that is a good idea!

Let me start by saying that I’m not against glExec and running it in setuid/non-logging mode, at Glasgow we do for Atlas and LHCb. I just think this situation in this case is different enough that it warrants some investigation/thought. As I said I wasn’t around when glExec was first proposed/implemented/deployed and my concerns and arguments may already have been addressed… I really don’t know, but hearing what others think has raised some issues in my mind.

In summary my worries are:

1) While we’ve had single VO pilots I don’t believe the effect of Multi-VO pilots have been investigated in the current system or how that changes the threat landscape (potentially there is a wider possibility to hide malicious activity).

2) By proposing GridPP (the organisation) allows Multi-VO pilots we start to stand in place of the VO in ensuring that a payload is run securely. This means:

a) The Dirac instance now has a requirement to ensure that the pilot is secure and correctly maps to a specific VO/user and can’t be abused. Before that was a requirement of the VO but would now be a requirement of GridPP.

b) To run small VO workloads sites are now required to have glExec as the pilot can’t guarantee safety without it in a multi-VO environment (at least I believe that was Simon’s position), which leaves some tarball WN sites out in the cold at present (this impacts ScotGrid in particular with ECDF and  running LSST payloads as an example).

3) Sites need to have sufficient knowledge or procedures to ensure glExec is correctly configured, and can be audited so that all executions are logged. I know I would definitely need to understand the glExec execution model better as there are many things I personally have already missed (until this discussion I admit I didn’t know there was a logging only mode, and I didn’t know about epilogue functionality). Guidelines here would be great! 

As I said I’m not against the proposal and indeed see benefit from it like the ability of a site to ensure banning is handled effectively (fine grained per user DN in conjunction with ARGUS) which is not the case when running without glExec and running jobs via Dirac. Indeed the epilogue functionality looks great at low level user monitoring which is something I would have liked to have a number of times previously with rogue users. I just worry that we haven’t explored all of the potential pitfalls associated with doing it this way. 

Thanks,

Gareth 





> On 7 Aug 2015, at 10:07, Ian Neilson <[log in to unmask]> wrote:
> 
> Hi All,
> 
> Without any intention to terminate a valuable discussion, but feeling I do not have current, technical understanding to add to it (I can't read fast enough to keep up here!), I can offer to try to co-ordinate the production of a (hopefully) reasonably concise summary of the issues raised for some future consensus. Does that sound like a good idea?
> 
> I'd also be interested to know if there are sites with hard site-policy objections to running glexec in setuid/non-logging mode?
> 
> Cheers,
> Ian
> 
> -- Ian Neilson
> -- GridPP Security Officer
> -- [log in to unmask]
> -- +44 7554 107 132
> 
>> -----Original Message-----
>> From: Testbed Support for GridPP member institutes [mailto:TB-
>> [log in to unmask]] On Behalf Of Gareth Roy
>> Sent: 07 August 2015 09:50
>> To: [log in to unmask]
>> Subject: Re: glexec for small VOs
>> 
>> Hi Ewan,
>> 
>>> On 6 Aug 2015, at 16:57, Ewan MacMahon
>> <[log in to unmask]> wrote:
>>> 
>>>> -----Original Message-----
>>>> From: Testbed Support for GridPP member institutes [mailto:TB-
>>>> [log in to unmask]] On Behalf Of Gareth Roy
>>>> 
>>>> For a start there is a significant difference between a multiuser pilot
>>>> and a multi-VO pilot. In a multiuser pilot, a privilege escalation due to
>>>> credential theft can only raise the ability of that user within that VO
>>>> (i.e. gaining a production role for instance) while in a multi-VO pilot a
>>>> privilege escalation could give a role (of any type) within a VO that user
>>>> is not part of. Now you might say that’s not a huge difference but I feel
>>>> the second is worse than the first as at least the VO in question has some
>>>> oversight.
>>>> 
>>> I think that's something worth thinking about, taking into account that aspect
>> of it along with how hard it would be to have separate pilot DNs per VO, but it
>> doesn't affect the action being asked of sites - a site needs to have a mechanism
>> for isolating user payloads, glExec or otherwise, in either case.
>> 
>> I agree, however sites already have a mechanism for isolating payloads with the
>> pool account model were one DN is mapped to a known pool account (usually
>> via ARGUS). With pilots that breaks down and there is no longer a 1:1 mapping,
>> hence glExec which I understood to be more about auditing and traceability than
>> isolation since pilots used to run without accessing glExec (and still do at sites
>> without it configured i.e. tarball sites). My issue here is we are moving one step
>> further in removing that mapping as we now don’t even have a 1:1 mapping of
>> VO to pilot, making traceability even more difficult without some intervention
>> from a site. What is actually being asked is for a site to modify how they isolate
>> user payloads and to accept some responsibility for auditing job submission and
>> execution.
>> 
>> Take a hypothetical example: a pilot lands, the payload steals the pilot proxy
>> (before glExec due to a vulnerability in the pilot [1]) and uses it to download
>> another users payload… then in fact uses glExec to pivot to that pool account
>> and start running as that user. How do we as a site audit that? If the pilot is
>> restricted to one VO we know who the pilot came from and potentially can gain
>> help from that VO, but from a multi-VO pilot how do we even tell which VO
>> instigated the initial launch? Does Dirac have the records? If it does any security
>> breach now requires the Imperial admins to be in the loop and to be ready to
>> help as well as VO managers. Do the Imperial guys want to have that level of
>> responsibility? Whereas with WMS it was useful to have admins in the loop, now
>> it is essential!
>> 
>> [1] I know this is unlikely but having looked at the DIRAC source code it looks like
>> the pilot is partially dynamic had has chunks created on the fly at submission
>> time? Have I understood that correctly or totally in left field, it’s been a long
>> time since I’ve actively used python. I assume as part of LHCb DIRAC as a whole
>> has had a security audit but bugs are bugs.
>> 
>>> 
>>>> Once credentials have been shipped by DIRAC to a site it’s
>>>> similar to the issues with DRM, everything that’s needed to run the code
>>>> is in place and the submission system or even the VO doesn’t have control
>>>> anymore.
>>>> 
>>> That's true, but I think the DRM comparison is useful - whoever controls the
>> hardware controls the security, that's why it's the site's responsibility to provide
>> this isolation. Site admins and the systems we run are unavoidably trusted in this
>> system[1], we can already steal credentials that wind up on our nodes, and we
>> can misconfigure our nodes in a wide variety of ways. We just have to not.
>> Besides which, glExec is pretty easy to configure - you just YAIM it.
>> 
>> Unless you’re trying to remove YAIM because it’s likely to be unsupported, or
>> you’d like better control of the components than YAIM affords, for instance
>> adding post auditing hooks to glExec calls (which as an aside looks very cool and
>> definitely something we’re going to look at if we run multi-VO pilots). As I site
>> admin I don’t trust a users payload… but I have to make allowances to actually
>> run jobs. In this case as a site admin I’m being asked to have an additional pilot
>> framework run at the site that has the capability to run a setuid binary. I just
>> want to make sure I understand the risks and can appropriately protect myself
>> before that happens. As you said in DRM it’s the hardware’s responsibility and to
>> be honest the best solution they’ve come up with is to have half the data live on
>> a remote server and be streamed based on arcane access controls :D
>> 
>>> 
>>>> I know, in general, all these issues are the same as running “big” VO jobs
>>>> but in my limited experience working with the Grid we’ve had little
>>>> problem with large VO’s doing something naughty (due to other constraints
>>>> and security mechanisms) and a lot of problems with small VO users doing
>>>> things they shouldn’t with little oversight by VO managers.
>>>> 
>>> I think that's fair, and that's partly why we probably don't want to fudge this
>> and not bother doing it right any more; it is more important to
>>> box in the minor VOs than the big ones.
>>> 
>> 
>> Oh I agree entirely, this is very much something I don’t want fudged… I would
>> like to really understand the risks and the mitigation so I know where to point
>> my monitoring tools and audits so I can catch something when (not if) it goes
>> wrong.
>> 
>> Thanks,
>> 
>> Gareth


Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

April 2024
March 2024
February 2024
January 2024
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager