<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On 3 Jul 2017, at 17:32, Ian Hinder &lt;<a href="mailto:ian.hinder@aei.mpg.de">ian.hinder@aei.mpg.de</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br>On 20 Jun 2017, at 13:45, Ian Hinder &lt;<a href="mailto:ian.hinder@aei.mpg.de">ian.hinder@aei.mpg.de</a>&gt; wrote:<br><br><blockquote type="cite">On Fri, Jun 2, 2017 at 11:25 AM, Ian Hinder &lt;<a href="mailto:ian.hinder@aei.mpg.de">ian.hinder@aei.mpg.de</a>&gt; wrote:<br><br><blockquote type="cite">Hi all,<br><br>The security team at NCSA have blocked access to the ET Jenkins server due to a suspected security compromise. &nbsp;We are investigating.<br><br>If you have in the past configured a jenkins build node which can be accessed from the jenkins master via ssh (i.e. you have added the jenkins public ssh key to an authorized_keys file), then you should immediately remove this key. &nbsp;<br><br>Note that none of the jenkins build nodes apart from the one also hosted at NCSA was working at the time, so it's unlikely that any further attack was possible to those machines.<br><br>We have backups from before the incident, so assuming we can fix the vulnerability, we should be able to get the system up and running in a few days.<br></blockquote><br>Hi,<br><br>A quick update:<br><br>I have recreated the Jenkins master and build nodes from backups, and have the new machines running. I am still waiting to hear from the NCSA security team concerning exactly what the vulnerability was. &nbsp;I can't make Jenkins available publicly until we are confident that the vulnerability is not still exposed.<br></blockquote><br>Hi all,<br><br>We are fairly sure that the problem was due to a security flaw in Jenkins itself, which was exploited to install a bitcoin miner (see<a href="https://security.stackexchange.com/questions/160068/kworker34-malware-on-linux">https://security.stackexchange.com/questions/160068/kworker34-malware-on-linux</a>,). &nbsp;Apart from the presence of this miner, we can't find any other indication of a problem. Nevertheless, we have restored from backup and upgraded Jenkins.<br><br>This flaw was announced and patched on 26-Apr-2017 (<a href="https://jenkins.io/security/advisory/2017-04-26/">https://jenkins.io/security/advisory/2017-04-26/</a>), but Jenkins was not being updated automatically on this machine (other ubuntu security updates were being applied automatically, but Jenkins was obtained from the Jenkins PPA, and not included in the unattended-upgrades list). We have added Jenkins to unattended-upgrades.<br><br>There are a number of outdated plugins which should also be upgraded to be safe, but these are not all backward compatible, so this needs to be done with care (and backups). &nbsp;I don't want to make Jenkins accessible publicly until this is done.<br><br>For ET members with ssh accounts on<span class="Apple-converted-space">&nbsp;</span><a href="http://login.barrywardell.net/">login.barrywardell.net</a>, you can access Jenkins using<br><br>ssh -L 8080:192.168.0.28:443 -Nv<span class="Apple-converted-space">&nbsp;</span><a href="http://login.barrywardell.net/">login.barrywardell.net</a><br><br>and browsing to<span class="Apple-converted-space">&nbsp;</span><a href="https://localhost:8080/">https://localhost:8080</a>. &nbsp;You will need to agree to the mismatched SSL certificate.<br></div></blockquote><div><br></div><div>Hi all,</div><div><br></div><div>The Einstein Toolkit build and test system "Jenkins" server is online and accessible again via</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><a href="https://build-test.barrywardell.net">https://build-test.barrywardell.net</a></div><div><br></div><div>We still have the 6 failures (<a href="https://build-test.barrywardell.net/job/EinsteinToolkit/lastCompletedBuild/testReport/">https://build-test.barrywardell.net/job/EinsteinToolkit/lastCompletedBuild/testReport/</a>) which were previously reported. &nbsp;</div><div><br></div><div>I have:</div><div><br></div><div>- Recovered the build machine from a backup from before the intrusion</div><div>- Reset the ssh host key</div><div>- Regenerated the Jenkins ssh private key</div><div>- Upgraded the OS to Ubuntu 16.04 LTS</div><div>- Upgraded Jenkins to the latest version</div><div>- Ensured that automatic security updates are applied to Jenkins (previously they were not, due to an oversight)</div><div>- Upgraded all plugins to the latest versions</div><div>- Reset all system and Jenkins passwords</div><div><br></div><div>If you have a Jenkins account and would like to know the new password, please let me know.</div><div><br></div></div><div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>--&nbsp;</div><div>Ian Hinder</div><div><a href="http://members.aei.mpg.de/ianhin">http://members.aei.mpg.de/ianhin</a></div></div></div></div></div>
</div>
<br></body></html>