根据Wordfence的数据,盗版主题和插件是2020年WordPress网站上最常见的恶意软件感染源,一家为WordPress网站提供网站应用防火墙(WAF)解决方案的提供商。

这家安全公司表示,其恶意软件扫描程序在2020年的120多万个WordPress网站上检测到超过7000万个恶意文件。

“总的来说,Wordfence扫描程序在206000个网站上发现了源自无效插件或主题的恶意软件,该公司周三表示,占所有受感染网站的17%以上。

在这20.6万个网站中,有154928个网站感染了WP-VCD恶意软件,WordPress的一个恶意软件变种,以使用盗版/无效主题进行传播而闻名。

Wordfence说,去年这一特定的恶意软件操作非常成功,在2020年占所有受感染网站的13%。

超过900亿次恶意登录尝试

但是WordPress网站也通过其他方式感染了恶意软件超越盗版主题。合法网站也受到攻击和感染。这些网站被黑客入侵的其他方法包括对登录表单的暴力攻击和利用未修补漏洞的漏洞攻击代码。

总之,就暴力攻击而言,2020年是一个巨大的一年。Wordfence报告称,有超过900亿次恶意和自动登录尝试。

这些攻击来自5700万个不同的IP地址(很可能是攻击僵尸网络和代理网络的一部分),每秒针对Wordfence客户的恶意登录尝试达2800次。

为了减轻这些攻击,Wordfence建议网站所有者为其帐户部署WAF或启用双因素身份验证解决方案。

在漏洞攻击方面,情况同样糟糕,Wordfence在过去一年中报告了超过43亿次的攻击尝试。

攻击者去年利用的最常见的漏洞形式是“目录遍历”,这是一种威胁参与者试图滥用的漏洞,从WordPress安装(如wp)读取文件-配置.php)或者在WordPress上上传恶意文件站点。

其他攻击尝试也依赖于SQL注入、远程代码执行错误、跨站点脚本问题或身份验证绕过,Wordfence说。

新的网络犯罪工具可以实时构建钓鱼网页

当局计划于2021年3月25日从受感染的主机上批量卸载Emotet

a, .nav-item > a, .dropdown-menu a'); allLinks.forEach(link => { let href = link.getAttribute('href'); if (!href || href === '#' || href === 'javascript:;') return; // 4. 提取菜单中的核心路径 // 例如 /articles.html -> articles let cleanHref = href.replace(/^\/|\/$/g, '').replace(/\.(html|php)$/, '').toLowerCase(); let isMatch = false; // 5. 精确匹配逻辑 if (cleanHref === 'index') { // 只有当前是首页时,才高亮首页 if (cleanPath === 'index') isMatch = true; } else { // 如果当前路径完全等于菜单路径 (如 /articles 匹配 /articles) // 或者当前路径以 "菜单路径/" 开头 (如 /articles/154 匹配 /articles) // 或者当前路径包含 "菜单路径." (防某些带点号的特殊情况) if (cleanPath === cleanHref || cleanPath.startsWith(cleanHref + '/')) { isMatch = true; } } // 6. 如果匹配成功,加上高亮 if (isMatch) { link.classList.add('active'); // 如果匹配的是下拉菜单里的子项,顺便把它的父级分类也高亮 const parentNavItem = link.closest('.nav-item'); if (parentNavItem && !parentNavItem.classList.contains('active')) { const parentLink = parentNavItem.querySelector('a'); if (parentLink) parentLink.classList.add('active'); } } }); })(); // ================= 移动端菜单逻辑 ================= const toggle = document.getElementById("menuToggle"); const nav = document.getElementById("navLinks"); // 1. 汉堡按钮:切换主菜单显示/隐藏 if (toggle && nav) { toggle.addEventListener("click", function (e) { e.stopPropagation(); const expanded = this.getAttribute("aria-expanded") === "true"; this.setAttribute("aria-expanded", String(!expanded)); nav.classList.toggle("active"); }); } // 2. 处理下拉子菜单的展开/折叠 if (window.innerWidth <= 768) { const navItems = document.querySelectorAll(".nav-item"); navItems.forEach((item) => { const titleLink = item.querySelector("a"); const dropdownMenu = item.querySelector(".dropdown-menu"); const arrowIcon = item.querySelector(".arrow-icon"); if (titleLink && dropdownMenu) { titleLink.addEventListener("click", function (e) { e.preventDefault(); // 阻止链接跳转 e.stopPropagation(); // 手风琴效果:收起其他已展开的菜单 navItems.forEach((otherItem) => { if (otherItem !== item) { const otherMenu = otherItem.querySelector(".dropdown-menu"); const otherArrow = otherItem.querySelector(".arrow-icon"); if (otherMenu) otherMenu.classList.remove("active"); if (otherArrow) otherArrow.style.transform = "rotate(0)"; } }); // 切换当前菜单 dropdownMenu.classList.toggle("active"); if (arrowIcon) { arrowIcon.style.transform = dropdownMenu.classList.contains( "active", ) ? "rotate(180deg)" : "rotate(0)"; } }); } }); } // 3. 点击普通菜单项后,自动关闭整个主菜单 if (nav) { nav.querySelectorAll("a").forEach(function (link) { if (!link.querySelector(".arrow-icon")) { link.addEventListener("click", function () { nav.classList.remove("active"); if (toggle) toggle.setAttribute("aria-expanded", "false"); }); } }); } // ================= 返回顶部逻辑 ================= (function () { const backToTop = document.getElementById("backToTop"); window.addEventListener("scroll", function () { if (window.scrollY > 300) { backToTop.classList.add("show"); } else { backToTop.classList.remove("show"); } }); backToTop.addEventListener("click", function () { window.scrollTo({ top: 0, behavior: "smooth" }); }); })(); // 多语言 document.addEventListener("DOMContentLoaded", function() { let path = window.location.pathname; let isEn = path.startsWith('/en/'); if (isEn) { document.cookie = "my_lang=en; path=/; max-age=" + (30 * 24 * 3600); } else { document.cookie = "my_lang=zh; path=/; max-age=" + (30 * 24 * 3600); } // 【2. 首页记忆】如果访问的是首页(没带 en),但记忆是英文,前端自动跳去英文首页 if (!isEn && (path === '/' || path === '/index.html')) { if (document.cookie.includes('my_lang=en')) { window.location.replace('/en' + path); return; } } // 【3. 菜单不掉线】如果是英文页面,自动给菜单链接加上 /en/ if (isEn) { document.querySelectorAll('a').forEach(function(link) { let href = link.getAttribute('href'); // 站内链接,且没带 /en/ if (href && href.startsWith('/') && !href.startsWith('/en/') && !href.startsWith('http')) { link.setAttribute('href', '/en' + href); } }); } });