<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>惜分飞 &#187; SQL RUSH</title>
	<atom:link href="https://www.xifenfei.com/tag/sql-rush/feed" rel="self" type="application/rss+xml" />
	<link>https://www.xifenfei.com</link>
	<description>提供7*24专业数据库(Oracle,SQL Server,MySQL,PostgreSQL等)恢复和技术支持@Tel:17813235971</description>
	<lastBuildDate>Sat, 24 Oct 2026 14:05:24 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>plsql dev引起的数据库被黑勒索比特币实现原理分析和解决方案</title>
		<link>https://www.xifenfei.com/2016/11/plsql-dev-hacker-bitcoin.html</link>
		<comments>https://www.xifenfei.com/2016/11/plsql-dev-hacker-bitcoin.html#comments</comments>
		<pubDate>Thu, 17 Nov 2016 02:13:01 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[勒索恢复]]></category>
		<category><![CDATA[DBMS_CORE_INTERNAL]]></category>
		<category><![CDATA[DBMS_SUPPORT_INTERNAL]]></category>
		<category><![CDATA[DBMS_SYSTEM_INTERNAL]]></category>
		<category><![CDATA[oracle 比特币]]></category>
		<category><![CDATA[oracle勒索]]></category>
		<category><![CDATA[oracle勒索病毒]]></category>
		<category><![CDATA[plsql 比特币]]></category>
		<category><![CDATA[plsql勒索]]></category>
		<category><![CDATA[plsql勒索病毒]]></category>
		<category><![CDATA[plsql黑客]]></category>
		<category><![CDATA[SQL RUSH]]></category>
		<category><![CDATA[SQL RUSH加密]]></category>
		<category><![CDATA[YOUR FILES ARE ENCRYPTED]]></category>
		<category><![CDATA[比特币]]></category>
		<category><![CDATA[比特币 oracle]]></category>
		<category><![CDATA[比特币plsql]]></category>
		<category><![CDATA[比特币勒索]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=6689</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2016/11/plsql-dev-hacker-bitcoin.html">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div id="xifenfeicopyright">
<p>联系：<a href="https://www.xifenfei.com/about_xifenfei" target="_blank">手机/微信(+86 17813235971)   QQ(107644445)</a><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&#038;uin=107644445&#038;site=qq&#038;menu=yes"><img src="https://www.xifenfei.com/wp-content/themes/img/site_qq.jpg" alt="QQ咨询惜分飞" title="QQ咨询惜分飞"/></a></p>
<p>标题：<a href="https://www.xifenfei.com/2016/11/plsql-dev-hacker-bitcoin.html" target="_blank">plsql dev引起的数据库被黑勒索比特币实现原理分析和解决方案</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p><strong>数据库启动alert报错</strong></p>
<pre class="brush: bash; title: ; notranslate">
Mon Jul 10 19:51:24 2016
Errors in file e:\app\administrator\diag\rdbms\zhxh\zhxh\trace\zhxh_ora_3584.trc:
ORA-00604: 递归 SQL 级别 1 出现错误
ORA-20313: 你的数据库已被SQL RUSH Team锁死  发送5个比特币到这个地址 166xk1FXMB2g8JxBVF5T4Aw1Z5JaZ6vrSE (大小写一致)  之后把你的Oracle SID邮寄地址 sqlrush@mail.com 我们将让你知道如何解锁你的数据库  Hi buddy, your database was hacked by SQL RUSH Team, send 5 bitcoin to address 166xk1FXMB2g8JxBVF5T4Aw1Z5JaZ6vrSE (case sensitive),  after that send your Oracle SID to mail address sqlrush@mail.com, we will let you know how to unlock your database.
ORA-06512: 在 &quot;ZHXH.DBMS_SYSTEM_INTERNAL         &quot;, line 15
ORA-06512: 在 line 2
Mon Jul 10 19:51:30 2016
OER 7451 in Load Indicator : Error Code = OSD-04500: 指定了非法选项
O/S-Error: (OS 1) 函数不正确。 !
Mon Jul 10 19:51:34 2017
Errors in file e:\app\administrator\diag\rdbms\zhxh\zhxh\trace\zhxh_ora_824.trc:
ORA-00604: 递归 SQL 级别 1 出现错误
ORA-20313: 你的数据库已被SQL RUSH Team锁死  发送5个比特币到这个地址 166xk1FXMB2g8JxBVF5T4Aw1Z5JaZ6vrSE (大小写一致)  之后把你的Oracle SID邮寄地址 sqlrush@mail.com 我们将让你知道如何解锁你的数据库  Hi buddy, your database was hacked by SQL RUSH Team, send 5 bitcoin to address 166xk1FXMB2g8JxBVF5T4Aw1Z5JaZ6vrSE (case sensitive),  after that send your Oracle SID to mail address sqlrush@mail.com, we will let you know how to unlock your database.
ORA-06512: 在 &quot;ZHXH.DBMS_SYSTEM_INTERNAL         &quot;, line 15
ORA-06512: 在 line 2
</pre>
<p><strong>afterconnect.sql</strong><br />
是plsql dev登录后自动执行脚本，非Oralce官方脚本<br />
<a href="//www.xifenfei.com/wp-content/uploads/2016/11/1.jpg"><img class="alignleft size-full wp-image-6690" alt="1" src="//www.xifenfei.com/wp-content/uploads/2016/11/1.jpg" width="709" height="784" /></a></p>
<hr />
<p><strong>数据库启动后执行触发器DBMS_SUPPORT_INTERNAL</strong><br />
<a href="//www.xifenfei.com/wp-content/uploads/2016/11/2.jpg"><img class="alignleft size-full wp-image-6691" alt="2" src="//www.xifenfei.com/wp-content/uploads/2016/11/2.jpg" width="501" height="107" /></a><br />
<a href="//www.xifenfei.com/wp-content/uploads/2016/11/3.jpg"><img class="alignleft size-full wp-image-6692" alt="3" src="//www.xifenfei.com/wp-content/uploads/2016/11/3.jpg" width="1223" height="494" /></a></p>
<hr />
<p>DBMS_SUPPORT_INTERNAL主要的意义是：<br />
1. 当数据库创建时间大于1200天之后，开始备份tab$表<br />
2. 删除tab$中除掉owner#为0和38的记录(sys，xdb)<br />
<a href="//www.xifenfei.com/wp-content/uploads/2016/11/4.jpg"><img class="alignleft size-full wp-image-6693" alt="4" src="//www.xifenfei.com/wp-content/uploads/2016/11/4.jpg" width="435" height="148" /></a></p>
<hr />
<p>3. 通过SYS.DBMS_BACKUP_RESTORE.RESETCFILESECTION清理掉备份信息(v$controlfile_record_section)<br />
4. 然后通过DBMS_SYSTEM.KSDWRT在你的alert日志中写上2046次的提示信息<br />
Hi buddy, your database was hacked by SQL RUSH Team, send 5 bitcoin to address 166xk1FXMB2g8JxBVF5T4Aw1Z5JaZ6vrSE (case sensitive), after that send your Oracle SID to mail address sqlrush@mail.com, we will let you know how to unlock your database.<br />
你的数据库已被SQL RUSH Team锁死 发送5个比特币到这个地址 166xk1FXMB2g8JxBVF5T4Aw1Z5JaZ6vrSE (大小写一致) 之后把你的Oracle SID邮寄地址 sqlrush@mail.com 我们将让你知道如何解锁你的数据库<br />
5. 再抛出一个前台的和4类似的警告信息<br />
<strong>数据库登录触发器DBMS_SYSTEM_INTERNAL</strong><br />
<a href="//www.xifenfei.com/wp-content/uploads/2016/11/6.jpg"><img class="alignleft size-full wp-image-6694" alt="6" src="//www.xifenfei.com/wp-content/uploads/2016/11/6.jpg" width="526" height="85" /></a><br />
<a href="//www.xifenfei.com/wp-content/uploads/2016/11/7.jpg"><img class="alignleft size-full wp-image-6695" alt="7" src="//www.xifenfei.com/wp-content/uploads/2016/11/7.jpg" width="1119" height="343" /></a></p>
<hr />
<p>当你的非SYSTEM,SYSAUX,EXAMPLE之外的所有表的最小统计信息时间大于1200天，而且非C89239.EXE程序，就会报出来” 你的数据库已被SQL RUSH Team锁死 发送5个比特币到这个地址 166xk1FXMB2g8JxBVF5T4Aw1Z5JaZ6vrSE (大小写一致) 之后把你的Oracle SID邮寄地址 sqlrush@mail.com 我们将让你知道如何解锁你的数据库 Hi buddy, your database was hacked by SQL RUSH Team, send 5 bitcoin to address 166xk1FXMB2g8JxBVF5T4Aw1Z5JaZ6vrSE<br />
(case sensitive), after that send your Oracle SID to mail address sqlrush@mail.com, we will let you know how to unlock your database.”的信息<br />
<strong>数据库登录触发器DBMS_CORE_INTERNAL</strong><br />
<a href="//www.xifenfei.com/wp-content/uploads/2016/11/8.jpg"><img class="alignleft size-full wp-image-6696" alt="8" src="//www.xifenfei.com/wp-content/uploads/2016/11/8.jpg" width="528" height="110" /></a><br />
<a href="//www.xifenfei.com/wp-content/uploads/2016/11/9.jpg"><img class="alignleft size-full wp-image-6697" alt="9" src="//www.xifenfei.com/wp-content/uploads/2016/11/9.jpg" width="1184" height="489" /></a><br />
<a href="//www.xifenfei.com/wp-content/uploads/2016/11/5.jpg"><img class="alignleft size-full wp-image-6698" alt="5" src="//www.xifenfei.com/wp-content/uploads/2016/11/5.jpg" width="452" height="102" /></a></p>
<hr />
<p>这里比较明显，把表名不含$，不含ORACHK，不是cluster的表放到一个游标里面，然后取非SYSTEM,SYSAUX,EXAMPLE之外的表空间的表的最小统计信息收集时间和当前时间比较如果大于1200天就执行truncate table操作，操作完成之后判断如果登录程序不为C89239.EXE，则报出来异常，” 你的数据库已被SQL RUSH Team锁死 发送5个比特币到这个地址 166xk1FXMB2g8JxBVF5T4Aw1Z5JaZ6vrSE (大小写一致) 之后把你的Oracle SID邮寄地址 sqlrush@mail.com 我们将让你知道如何解锁你的数据库 Hi buddy, your database was hacked by SQL RUSH Team, send 5 bitcoin to address 166xk1FXMB2g8JxBVF5T4Aw1Z5JaZ6vrSE<br />
(case sensitive), after that send your Oracle SID to mail address sqlrush@mail.com, we will let you know how to unlock your database.”。</p>
<p><strong>对于这次故障处理方法</strong><br />
1. 如果SELECT NVL(TO_CHAR(SYSDATE-MIN(LAST_ANALYZED)),0) FROM ALL_TABLES WHERE TABLESPACE_NAME NOT IN (&#8216;SYSTEM&#8217;,&#8217;SYSAUX&#8217;,&#8217;EXAMPLE&#8217;); 小于1200，查询下列语句，然后删除掉(正常库查询为空)</p>
<p>2. 如果SYSDATE-MIN(LAST_ANALYZED)大于1200, SYSDATE-CREATED大于1200天未重启，或者SYSDATE-CREATED小于1200;就是tab$还未被清理,但是表被truncate，这样情况可以通过oracle原厂dul工具恢复</p>
<p>3. 如果SYSDATE-CREATED大于1200天，而且数据库重启过，但是SYSDATE-MIN(LAST_ANALYZED)小于1200天，那可以直接通过把ORACHK&#8217;||SUBSTR(SYS_GUID,10)中备份信息插入到$tab中</p>
<p>4. SYSDATE-CREATED大于1200天，而且数据库重启过，但是SYSDATE-MIN(LAST_ANALYZED)大于1200天,Oracle 原厂dul之类工具结合ORACHK&#8217;||SUBSTR(SYS_GUID,10)备份表中数据进行恢复<br />
<a href="//www.xifenfei.com/wp-content/uploads/2016/11/dul.jpg"><img class="alignleft size-full wp-image-6699" alt="dul" src="//www.xifenfei.com/wp-content/uploads/2016/11/dul.jpg" width="673" height="283" /></a></p>
<hr />
<p><strong>预防策略</strong><br />
1）数据库里面查询下，如果有这些对象，及时给与清理（注意% ‘中间有空格）</p>
<pre class="brush: sql; title: ; notranslate">
select 'DROP TRIGGER '||owner||'.&quot;'||TRIGGER_NAME||'&quot;;' from dba_triggers 
where TRIGGER_NAME like  'DBMS_%_INTERNAL% '
union all
select 'DROP PROCEDURE '||owner||'.&quot;'||a.object_name||'&quot;;' from dba_procedures a 
where a.object_name like 'DBMS_%_INTERNAL% ';
--注意% '之间的空格
</pre>
<p>2）建议业务用户尽量限制dba 权限</p>
<p>3）检查相关登陆工具的自动运行脚本 清理掉有风险脚本</p>
<p>sqlplus中的glogin.sql/login.sql<br />
toad中的toad.ini<br />
plsql dev中的login.sql/afterconnect.sql</p>
<p>4）建议从官方下载工具，不要使用绿色版/破解版等</p>
<p>如果不幸数据库被感染此种勒索比特币事件,而且无法自行恢复的,可以联系我们给予技术支持<br />
<strong><span style="color: red; font-size: large;">Phone:17813235971    Q Q:107644445<a href="https://wpa.qq.com/msgrd?v=3&amp;uin=107644445&amp;site=qq&amp;menu=yes" target="_blank"><img id="xffqqimg" title="QQ咨询惜分飞" alt="QQ咨询惜分飞" src="//www.xifenfei.com/wp-content/themes/img/site_qq.jpg" /></a>    E-Mail:dba@xifenfei.com</span></strong></p>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2020/01/plsql-dev-sql-rush-team.html" rel="bookmark" class="crp_title">再次提醒plsql dev勒索事件</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2016/01/vmware-vsphere6-0-%e5%88%9d%e8%af%95.html" rel="bookmark" class="crp_title">VMware vSphere6.0 初试</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2017/05/wncry-recovery.html" rel="bookmark" class="crp_title">.wncry比特币勒索病毒恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2018/04/chak1-recovery.html" rel="bookmark" class="crp_title">.CHAK1 比特币加密勒索恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2016/01/vsphere-ssh%e7%99%bb%e9%99%86%e9%85%8d%e7%bd%ae.html" rel="bookmark" class="crp_title">vSphere ssh登陆配置</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2020/06/squadhackemail-tg-db-recovery.html" rel="bookmark" class="crp_title">[squadhack@email.tg].Devos加密数据库恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2016/07/_offline_rollback_segments-_corrupted_rollback_segments.html" rel="bookmark" class="crp_title">_OFFLINE_ROLLBACK_SEGMENTS/_CORRUPTED_ROLLBACK_SEGMENTS</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2016/05/result-cache-rc-latch.html" rel="bookmark" class="crp_title">12.1中出现大量Result Cache: RC Latch处理</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2013/04/oracle-7-3-4-%e6%88%aa%e5%9b%be%e6%ac%a3%e8%b5%8f.html" rel="bookmark" class="crp_title">ORACLE 7.3.4 截图欣赏</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/11/oracle-8i%e5%ae%89%e8%a3%85%e6%88%aa%e5%9b%be.html" rel="bookmark" class="crp_title">Oracle 8i安装过程截图</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2019/11/sql-server-drop-recovery.html" rel="bookmark" class="crp_title">SQL Server drop table 恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2020/01/mysql-encrypted-recovery.html" rel="bookmark" class="crp_title">mysql数据库被加密恢复</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2016/11/plsql-dev-hacker-bitcoin.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
