-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

===========================================================================
             AUSCERT External Security Bulletin Redistribution

                               ESB-2018.1187
      Advisory (ICSA-18-107-02) - Schneider Electric Triconex Tricon
                               18 April 2018

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:           Schneider Electric Triconex Tricon
Publisher:         ICS-CERT
Operating System:  Network Appliance
Impact/Access:     Execute Arbitrary Code/Commands -- Remote/Unauthenticated
                   Access Privileged Data          -- Remote/Unauthenticated
                   Denial of Service               -- Remote/Unauthenticated
Resolution:        Patch/Upgrade
CVE Names:         CVE-2018-8872 CVE-2018-7522 

Original Bulletin: 
   https://ics-cert.us-cert.gov/advisories/ICSA-18-107-02

- --------------------------BEGIN INCLUDED TEXT--------------------

Advisory (ICSA-18-107-02)
Schneider Electric Triconex Tricon


Legal Notice

All information products included in http://ics-cert.us-cert.gov are provided
"as is" for informational purposes only. The Department of Homeland Security
(DHS) does not provide any warranties of any kind regarding any information
contained within. DHS does not endorse any commercial product or service,
referenced in this product or otherwise. Further dissemination of this product
is governed by the Traffic Light Protocol (TLP) marking in the header. For more
information about TLP, see http://www.us-cert.gov/tlp/.


1. EXECUTIVE SUMMARY

    CVSS v3 10.0

    ATTENTION: Exploitable remotely/low skill level to exploit/HatMan malware
    specifically targets these vulnerabilities.

    Vendor: Schneider Electric

    Equipment: Triconex Tricon, model 3008

    Vulnerabilities: Improper Restriction of Operations within the Bounds of a
    Memory Buffer


2. RISK EVALUATION

Successful exploitation of these vulnerabilities could misinform or control the
Safety Instrumented System which could result in arbitrary code execution,
system shutdown, or the compromise of safety systems.


3. TECHNICAL DETAILS

3.1 AFFECTED PRODUCTS

The following versions of Triconex Tricon, a Safety Instrumented System, are
affected:

    MP model 3008 firmware versions 10.0-10.4


3.2 VULNERABILITY OVERVIEW

3.2.1   IMPROPER RESTRICTION OF OPERATIONS WITHIN THE BOUNDS OF A MEMORY BUFFER
CWE-119

The system call reads directly from memory addresses within the control program
area without any verification.  Manipulating this data could allow attacker
data to be copied anywhere within memory.

CVE-2018-8872 has been assigned to this vulnerability. A CVSS v3 base score of
10.0 has been assigned; the CVSS vector string is
(AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H).

3.2.2   IMPROPER RESTRICTION OF OPERATIONS WITHIN THE BOUNDS OF A MEMORY BUFFER
CWE-119

When a system call is made, registers are stored to a fixed memory location.
Modifying the data in this location could allow attackers to gain
supervisor-level access and control system states.

CVE-2018-7522 has been assigned to this vulnerability. A CVSS v3 base score of
7.9 has been assigned; the CVSS vector string is
(AV:L/AC:L/PR:H/UI:N/S:C/C:N/I:H/A:H).

3.3 BACKGROUND

    - Critical Infrastructure Sectors: Multiple Sectors
    - Countries/Areas Deployed: Worldwide
    - Company Headquarters Location: France


3.4 RESEARCHER

This vulnerability was discovered by NCCIC and Schneider Electric during the
investigation of the HatMan malware.


4. MITIGATIONS

Schneider Electric recommends that customers upgrade their firmware to the
latest 11.x version.  Contact Schneider Electric support for instructions.

The HatMan malware requires unrestricted access to the safety network via
remote network or physical access. Additionally, the malware requires the
Tricon key switch to be in the "PROGRAM" mode to successfully deploy its
payload.

Schneider Electric continues to recommend users always implement the
instructions in the "Security Considerations" section in the standard Triconex
documentation (i.e., Planning and Installation Guides and TriStation 1131
Developers Guide), which include the following:

    - Ensure the cybersecurity features in Triconex solutions are always
      enabled.
    - Safety systems must always be deployed on isolated networks.
    - Physical controls should be in place so that no unauthorized person would
      have access to the safety controllers, peripheral safety equipment, or
      the safety network.
    - All controllers should reside in locked cabinets and never be left in the
      "PROGRAM" mode.
    - All TriStation engineering workstations should be secured and never be
      connected to any network other than the safety network.
    - All methods of mobile data exchange with the isolated safety network such
      as CDs, USB drives, DVD's, etc. should be scanned before use in the
      TriStation engineering workstations or any node connected to this
      network.
    - Laptops and PCs should always be properly verified to be virus and
      malware free before connecting to the safety network or any Triconex
      controller.
    - Operator stations should be configured to display an alarm whenever the
      Tricon key switch is in the "PROGRAM" mode.

NCCIC recommends that users take defensive measures to minimize the risk of
exploitation of these vulnerabilities. Specifically, users should:

    - Minimize network exposure for all Safety Instrumented Systems, and ensure
      that they are not accessible from the Internet.
    - Locate Safety Instrumented Systems behind firewalls, and isolate them
      from all other networks.
    - When remote access is required, use secure methods, such as Virtual
      Private Networks (VPNs), recognizing that VPNs may have vulnerabilities
      and should be updated to the most current version available. Also
      recognize that VPN is only as secure as the connected devices.

NCCIC reminds organizations to perform proper impact analysis and risk
assessment prior to deploying defensive measures.

NCCIC also provides a section for control systems security recommended
practices on the ICS-CERT web page. Several recommended practices are available
for reading and download, including Improving Industrial Control Systems
Cybersecurity with Defense-in-Depth Strategies.

Additional mitigation guidance and recommended practices are publicly available
in the ICS-CERT Technical Information Paper, ICS-TIP-12-146-01B--Targeted Cyber
Intrusion Detection and Mitigation Strategies, that is available for download
from the ICS-CERT website.

Organizations observing any suspected malicious activity should follow their
established internal procedures and report their findings to NCCIC for tracking
and correlation against other incidents.

NCCIC also recommends that users take the following measures to protect
themselves from social engineering attacks:

    - Do not click web links or open unsolicited attachments in email messages.
    - Refer to Recognizing and Avoiding Email Scams for more information on
      avoiding email scams.
    - Refer to Avoiding Social Engineering and Phishing Attacks for more
      information on social engineering attacks.


Contact Information

For any questions related to this report, please contact the NCCIC at:

Email: NCCICCUSTOMERSERVICE@hq.dhs.gov Toll Free: 1-888-282-0870

For industrial control systems cybersecurity information:
http://ics-cert.us-cert.gov or incident reporting:
https://ics-cert.us-cert.gov/Report-Incident?

The NCCIC continuously strives to improve its products and services. You can
help by choosing one of the links below to provide feedback about this product.

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        https://www.auscert.org.au/bulletins/

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
===========================================================================
-----BEGIN PGP SIGNATURE-----
Comment: http://www.auscert.org.au/render.html?it=1967

iQIVAwUBWtbVSYx+lLeg9Ub1AQgw3w//TqGxglGQjFDCyRECkbYFw236mMkJTv6A
pVmve8aM9vdhRg1Jq9C0f5/V6gh/gECLBP+MSBF/RMGLKQOqC4PdmDPfnykCQU96
j86N2cO0/MXZJ3/sRIv2bnVMtqOv5UKPP+af2Q7jDn4ZubaR/06A+9bL7BEM+Fqa
/fizOPa64piZ0Q9A5d4/5eo4lTXCsISaaoHWRqMnV+Ui212IYssOAtG4WBqSdxzI
ZXIjIheTqqoYgIH+GbGv9wxvKVFelcmuqL4meFxubGJP21kpgVwSHcOW6gWdjz9q
rqlR1QL9fkJUZer/7DOOp//vIc0BlmNdBeNwZo5ti8FMNYvZ4f+xbjabMZCDl3f8
sMAMEtFJypAHwxI8K0pc7FA5L76fEHobVathFr+IznUyu8zxioodWmkg99sl2AAC
nYQgQhMDfeGbqoBQI+CHJdEXmt8WRKEZJxyoOM40DUambrfJNmdlSSdl62jsMEGh
jBI0G13Bm/HD8Tfhki9eEM1/VdKlMuNIrHtQXM6EQ951mJ3zAWra+dB0mbBWgfY6
avyQO9W4STMx8licliFctmVlfezF7DrD8s2XtwPHtFa1L9BVSCQLxp0dIO2O7p90
U6RfBqG7r19FA0i6I4EZCSUannaJpT9fLmq+7fOZ2sAc6ZV6MsVNlwtZWuM72CBE
+SXtU38Puyo=
=vLdB
-----END PGP SIGNATURE-----