ID OPENVAS:1361412562310108563 Type openvas Reporter Copyright (C) 2019 Greenbone Networks GmbH Modified 2020-04-06T00:00:00
Description
The remote Android device seems to be infected by the Exodus spyware.
# Copyright (C) 2019 Greenbone Networks GmbH
#
# SPDX-License-Identifier: GPL-2.0-or-later
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.108563");
script_version("2020-04-06T10:38:44+0000");
script_tag(name:"cvss_base", value:"10.0");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:C/I:C/A:C");
script_tag(name:"last_modification", value:"2020-04-06 10:38:44 +0000 (Mon, 06 Apr 2020)");
script_tag(name:"creation_date", value:"2019-03-31 12:08:27 +0000 (Sun, 31 Mar 2019)");
script_name("Exodus Android Spyware Detection");
script_category(ACT_ATTACK);
script_family("Malware");
script_copyright("Copyright (C) 2019 Greenbone Networks GmbH");
script_dependencies("find_service.nasl");
script_require_ports(6200, 6842);
script_tag(name:"summary", value:"The remote Android device seems to be infected by the Exodus spyware.");
script_tag(name:"vuldetect", value:"- opens a connection to port 6200/tcp and/or 6842/tcp
- sends an additional 'sh' command on port 6200/tcp
- checks the response if the remote device is infected and provides a remote shell");
script_tag(name:"solution", value:"A whole cleanup of the infected system is recommended.");
script_xref(name:"URL", value:"https://www.securitywithoutborders.org/blog/2019/03/29/exodus.html");
script_tag(name:"solution_type", value:"Mitigation");
script_tag(name:"qod_type", value:"remote_banner");
exit(0);
}
include("misc_func.inc");
include("host_details.inc");
cmds = exploit_commands( "linux" );
foreach port( make_list( 6200, 6842 ) ) {
if( ! get_port_state( port ) )
continue;
if( ! soc = open_sock_tcp( port ) )
continue;
if( port == 6200 ) {
res = socket_send_recv( soc:soc, data:'sh\n', length:64 );
} else {
res = socket_send_recv( soc:soc, length:64 );
}
if( ! res || res !~ ":[/~].*[\$#]" ) {
close( soc );
continue;
}
foreach pattern( keys( cmds ) ) {
cmd = cmds[ pattern ];
res = socket_send_recv( soc:soc, data:cmd + '\n', length:64 );
if( ! res )
continue;
if( egrep( pattern:pattern, string:res ) ) {
close( soc );
security_message( port:port, data:'The Exodus Android Spyware seems to be running at this port.\n\nResponse:\n\n' + res );
exit( 0 );
}
}
close( soc );
}
exit( 0 );
{"id": "OPENVAS:1361412562310108563", "type": "openvas", "bulletinFamily": "scanner", "title": "Exodus Android Spyware Detection", "description": "The remote Android device seems to be infected by the Exodus spyware.", "published": "2019-03-31T00:00:00", "modified": "2020-04-06T00:00:00", "cvss": {"score": 0.0, "vector": "NONE"}, "href": "http://plugins.openvas.org/nasl.php?oid=1361412562310108563", "reporter": "Copyright (C) 2019 Greenbone Networks GmbH", "references": ["https://www.securitywithoutborders.org/blog/2019/03/29/exodus.html"], "cvelist": [], "lastseen": "2020-04-07T17:04:44", "viewCount": 5, "enchantments": {"dependencies": {"references": [], "modified": "2020-04-07T17:04:44", "rev": 2}, "score": {"value": 0.3, "vector": "NONE", "modified": "2020-04-07T17:04:44", "rev": 2}, "vulnersScore": 0.3}, "pluginID": "1361412562310108563", "sourceData": "# Copyright (C) 2019 Greenbone Networks GmbH\n#\n# SPDX-License-Identifier: GPL-2.0-or-later\n#\n# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU General Public License\n# as published by the Free Software Foundation; either version 2\n# of the License, or (at your option) any later version.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License\n# along with this program; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.\n\nif(description)\n{\n script_oid(\"1.3.6.1.4.1.25623.1.0.108563\");\n script_version(\"2020-04-06T10:38:44+0000\");\n script_tag(name:\"cvss_base\", value:\"10.0\");\n script_tag(name:\"cvss_base_vector\", value:\"AV:N/AC:L/Au:N/C:C/I:C/A:C\");\n script_tag(name:\"last_modification\", value:\"2020-04-06 10:38:44 +0000 (Mon, 06 Apr 2020)\");\n script_tag(name:\"creation_date\", value:\"2019-03-31 12:08:27 +0000 (Sun, 31 Mar 2019)\");\n script_name(\"Exodus Android Spyware Detection\");\n script_category(ACT_ATTACK);\n script_family(\"Malware\");\n script_copyright(\"Copyright (C) 2019 Greenbone Networks GmbH\");\n script_dependencies(\"find_service.nasl\");\n script_require_ports(6200, 6842);\n\n script_tag(name:\"summary\", value:\"The remote Android device seems to be infected by the Exodus spyware.\");\n\n script_tag(name:\"vuldetect\", value:\"- opens a connection to port 6200/tcp and/or 6842/tcp\n\n - sends an additional 'sh' command on port 6200/tcp\n\n - checks the response if the remote device is infected and provides a remote shell\");\n\n script_tag(name:\"solution\", value:\"A whole cleanup of the infected system is recommended.\");\n\n script_xref(name:\"URL\", value:\"https://www.securitywithoutborders.org/blog/2019/03/29/exodus.html\");\n\n script_tag(name:\"solution_type\", value:\"Mitigation\");\n script_tag(name:\"qod_type\", value:\"remote_banner\");\n\n exit(0);\n}\n\ninclude(\"misc_func.inc\");\ninclude(\"host_details.inc\");\n\ncmds = exploit_commands( \"linux\" );\n\nforeach port( make_list( 6200, 6842 ) ) {\n\n if( ! get_port_state( port ) )\n continue;\n\n if( ! soc = open_sock_tcp( port ) )\n continue;\n\n if( port == 6200 ) {\n res = socket_send_recv( soc:soc, data:'sh\\n', length:64 );\n } else {\n res = socket_send_recv( soc:soc, length:64 );\n }\n\n if( ! res || res !~ \":[/~].*[\\$#]\" ) {\n close( soc );\n continue;\n }\n\n foreach pattern( keys( cmds ) ) {\n\n cmd = cmds[ pattern ];\n\n res = socket_send_recv( soc:soc, data:cmd + '\\n', length:64 );\n if( ! res )\n continue;\n\n if( egrep( pattern:pattern, string:res ) ) {\n close( soc );\n security_message( port:port, data:'The Exodus Android Spyware seems to be running at this port.\\n\\nResponse:\\n\\n' + res );\n exit( 0 );\n }\n }\n close( soc );\n}\n\nexit( 0 );", "naslFamily": "Malware"}