<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Fernando Peralta</title>
    <description>The latest articles on DEV Community by Fernando Peralta (@fernandoperaltacarlos).</description>
    <link>https://dev.to/fernandoperaltacarlos</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F788325%2F30fab1e8-6186-4f72-b2b2-4566239bc57c.jpeg</url>
      <title>DEV Community: Fernando Peralta</title>
      <link>https://dev.to/fernandoperaltacarlos</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/fernandoperaltacarlos"/>
    <language>en</language>
    <item>
      <title>Postulé a una vacante de WordPress y me respondieron con un ataque ClickFix</title>
      <dc:creator>Fernando Peralta</dc:creator>
      <pubDate>Sat, 07 Nov 2026 09:06:53 +0000</pubDate>
      <link>https://dev.to/fernandoperaltacarlos/postule-a-una-vacante-de-wordpress-y-me-respondieron-con-un-ataque-clickfix-2lmi</link>
      <guid>https://dev.to/fernandoperaltacarlos/postule-a-una-vacante-de-wordpress-y-me-respondieron-con-un-ataque-clickfix-2lmi</guid>
      <description>&lt;p&gt;Postulé a una vacante de desarrollo WordPress. La respuesta agradecía mi portafolio y me pedía entrar a un supuesto Google Workspace para conocer los requisitos del proyecto. El enlace terminó llevándome a una página que preparaba un error de certificado falso y ofrecía comandos para ejecutar código externo.&lt;/p&gt;

&lt;p&gt;Actualmente estudio &lt;strong&gt;Ingeniería en Ciberseguridad en la Universidad Virtual del Estado de Guanajuato (UVEG)&lt;/strong&gt;. En este caso pude aplicar el análisis de JavaScript, la inspección de tráfico HTTP y el manejo de evidencias a una situación que llegó por mi trabajo como desarrollador. Documenté el mecanismo y los límites de lo que podía comprobar sin ejecutar las cargas.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Respuesta breve:&lt;/strong&gt; ClickFix es una técnica de ingeniería social que presenta un problema técnico falso para convencer a la víctima de copiar y ejecutar un comando. En este intento, una respuesta a mi postulación en WordPress Jobs llevó a un falso Google Workspace alojado en Google Sites. El HTML y la API revelaron instrucciones para Windows y macOS. Me detuve antes de introducir la clave de acceso; no descargué ni ejecuté las cargas y no observé evidencia de compromiso.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Fecha del análisis:&lt;/strong&gt; 5 de noviembre de 2026.&lt;br&gt;&lt;br&gt;
&lt;strong&gt;Tipo de incidente:&lt;/strong&gt; phishing de contratación, suplantación de Google Workspace y distribución de instrucciones de descarga y ejecución mediante ClickFix.&lt;br&gt;&lt;br&gt;
&lt;strong&gt;Severidad de la campaña:&lt;/strong&gt; alta, por la posibilidad de ejecución de software externo bajo engaño. Es una valoración del riesgo de la campaña, no una afirmación de infección de mi equipo.&lt;br&gt;&lt;br&gt;
&lt;strong&gt;Estado del equipo investigado:&lt;/strong&gt; sin compromiso observado; visité el sitio, introduje un correo ficticio y examiné el tráfico y el código.&lt;br&gt;&lt;br&gt;
&lt;strong&gt;Confianza del hallazgo principal:&lt;/strong&gt; alta, según el código fuente, las capturas y la respuesta HTTP documentados en el reporte.&lt;br&gt;&lt;br&gt;
&lt;strong&gt;Atribución a personas, países, grupos o familias de malware:&lt;/strong&gt; no determinada.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Aviso de seguridad:&lt;/strong&gt; Los indicadores sospechosos aparecen neutralizados o &lt;em&gt;defangueados&lt;/em&gt; (&lt;code&gt;hxxps&lt;/code&gt;, &lt;code&gt;[.]&lt;/code&gt;). No abras esas direcciones ni ejecutes los comandos de la campaña. Este artículo conserva el reporte completo en formato editorial; no distribuye ejecutables, scripts maliciosos ni el HTML original. Los hashes y los extractos técnicos proceden del análisis documentado, no de una nueva ejecución de las muestras.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;
  
  
  En este artículo
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Resumen ejecutivo&lt;/li&gt;
&lt;li&gt;La oferta como señuelo&lt;/li&gt;
&lt;li&gt;Evidencias y alcance&lt;/li&gt;
&lt;li&gt;Cadena de ataque&lt;/li&gt;
&lt;li&gt;Suplantación de Google&lt;/li&gt;
&lt;li&gt;Iframe y API externa&lt;/li&gt;
&lt;li&gt;Desofuscación Base64&lt;/li&gt;
&lt;li&gt;El botón Submit&lt;/li&gt;
&lt;li&gt;El error falso y ClickFix&lt;/li&gt;
&lt;li&gt;Comandos por plataforma&lt;/li&gt;
&lt;li&gt;Telemetría y billeteras&lt;/li&gt;
&lt;li&gt;Indicadores de compromiso&lt;/li&gt;
&lt;li&gt;MITRE ATT&amp;amp;CK&lt;/li&gt;
&lt;li&gt;Impacto en mi equipo&lt;/li&gt;
&lt;li&gt;Recomendaciones defensivas&lt;/li&gt;
&lt;li&gt;Dónde reportar y qué enviar&lt;/li&gt;
&lt;li&gt;Limitaciones y atribución&lt;/li&gt;
&lt;li&gt;Conclusión&lt;/li&gt;
&lt;li&gt;Preguntas frecuentes&lt;/li&gt;
&lt;li&gt;Referencias&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  Resumen ejecutivo
&lt;/h2&gt;

&lt;p&gt;Durante una búsqueda de proyectos WordPress recibí un correo que parecía una respuesta legítima a mi postulación. El remitente agradecía el portafolio e invitaba a acceder a un supuesto entorno de colaboración en Google Workspace para consultar el alcance del proyecto. El texto visible mostraba &lt;code&gt;https://workspace.google.com&lt;/code&gt;, pero el destino real era una página en &lt;strong&gt;Google Sites&lt;/strong&gt;, bajo &lt;code&gt;/view/loop-join/workspace&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;La página reproducía la web comercial de Workspace. El botón «Join to Workspace» abría un formulario de correo electrónico y después pedía la clave de acceso enviada en el mensaje. Al revisar los &lt;em&gt;event listeners&lt;/em&gt; y las peticiones HTTP con Chrome DevTools, identifiqué un &lt;strong&gt;iframe externo&lt;/strong&gt; en &lt;code&gt;lokolutikov[.]xyz&lt;/code&gt; y su API &lt;code&gt;/api/commands?land_id=32&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;La respuesta JSON contenía los campos &lt;code&gt;exe&lt;/code&gt;, &lt;code&gt;dmg&lt;/code&gt;, &lt;code&gt;windows&lt;/code&gt; y &lt;code&gt;mac&lt;/code&gt;, con enlaces a supuestos instaladores y comandos Base64. Su decodificación estática reveló instrucciones para descargar y ejecutar un script PowerShell desde &lt;code&gt;racleet[.]top&lt;/code&gt;, o un binario para Unix/macOS desde &lt;code&gt;109.238.87[.]111&lt;/code&gt;. El supuesto «DMG» apuntaba a un archivo &lt;code&gt;.scpt&lt;/code&gt; de AppleScript.&lt;/p&gt;

&lt;p&gt;La copia del HTML del iframe utilizada en el análisis contenía una envoltura Base64 y unos 7,9 MB de HTML decodificado. Una clave aceptada por &lt;code&gt;/api/verify&lt;/code&gt; activaría una animación de verificación, un fallo de autenticación &lt;strong&gt;programado deliberadamente&lt;/strong&gt; y una pantalla de certificado caducado. Esa pantalla promovía descargar software o copiar un comando: un flujo consistente con &lt;strong&gt;ClickFix&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;El código examinado intenta que la víctima ejecute manualmente el comando o instalador después del error falso. &lt;strong&gt;No identifiqué una llamada que ejecutara directamente PowerShell, Bash o AppleScript al pulsar &lt;code&gt;Submit&lt;/code&gt;.&lt;/strong&gt; Introducir la clave y ejecutar una carga son pasos distintos.&lt;/p&gt;

&lt;h2 id="contexto-oferta"&gt;1. Contexto: la oferta de trabajo como señuelo&lt;/h2&gt;

&lt;p&gt;La vacante estaba publicada en &lt;strong&gt;WordPress Jobs&lt;/strong&gt; como &lt;em&gt;WordPress Developer (Project, Remote)&lt;/em&gt;, con fecha &lt;strong&gt;31 de octubre de 2026&lt;/strong&gt;, empresa declarada &lt;strong&gt;NovenzaDigital&lt;/strong&gt;, presupuesto &lt;strong&gt;USD 5.000&lt;/strong&gt; y contacto &lt;code&gt;famewunozeno01@gmail[.]com&lt;/code&gt;. Pedía experiencia con WordPress, PHP, HTML, CSS, JavaScript, temas, plugins, integraciones y mantenimiento [1]. Ese presupuesto figuraba en el anuncio; no fue una oferta económica personal que recibiera después. La publicación tampoco acredita que WordPress validara la identidad del anunciante: la plataforma explica que sus ofertas son moderadas por voluntarios [2].&lt;/p&gt;

&lt;p&gt;Yo había respondido a esa oportunidad. Después recibí un correo firmado como «Tegan» desde la misma dirección anunciada. El mensaje elogiaba mi experiencia, afirmaba haber revisado mi portafolio y posponía la descripción detallada hasta que entrara al supuesto espacio de trabajo.&lt;/p&gt;

&lt;p&gt;La ingeniería social combinaba una candidatura real, una acción administrativa creíble y un requisito artificial: acceder con un código y después actualizar certificados. El texto del hipervínculo aprovechaba el reconocimiento de una plataforma conocida.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faanrmb78bhh8x6oxdenx.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faanrmb78bhh8x6oxdenx.webp" alt="Correo firmado como Tegan que presenta el enlace como Google Workspace; los datos del destinatario y el código de acceso están ocultos." width="707" height="1536"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Figura 1. El texto visible del enlace no correspondía al destino real. Difuminé y cubrí el código de acceso para su publicación.&lt;/em&gt;&lt;/p&gt;

&lt;h2 id="evidencias"&gt;2. Evidencias disponibles y alcance de la investigación&lt;/h2&gt;

&lt;p&gt;El reporte se basa en estos materiales obtenidos durante la investigación:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Identificador&lt;/th&gt;
&lt;th&gt;Evidencia&lt;/th&gt;
&lt;th&gt;Alcance de la observación&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;E-01&lt;/td&gt;
&lt;td&gt;Captura del correo de reclutamiento&lt;/td&gt;
&lt;td&gt;Remitente, señuelo y código de acceso; sin encabezados SMTP completos.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;E-02&lt;/td&gt;
&lt;td&gt;URL copiada del enlace del correo&lt;/td&gt;
&lt;td&gt;Destino real en Google Sites.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;E-03&lt;/td&gt;
&lt;td&gt;Capturas del falso Workspace&lt;/td&gt;
&lt;td&gt;Apariencia y formularios de correo y clave.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;E-04&lt;/td&gt;
&lt;td&gt;Captura de DevTools / Network&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;GET /api/commands?land_id=32&lt;/code&gt;, respuesta &lt;code&gt;200 OK&lt;/code&gt;, tipo JSON.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;E-05&lt;/td&gt;
&lt;td&gt;JSON copiado desde DevTools&lt;/td&gt;
&lt;td&gt;Enlaces de descarga y comandos por sistema operativo.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;E-06&lt;/td&gt;
&lt;td&gt;Captura del manejador de eventos&lt;/td&gt;
&lt;td&gt;El botón &lt;code&gt;Submit&lt;/code&gt; pertenece al iframe externo &lt;code&gt;workspace1.html&lt;/code&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;E-07&lt;/td&gt;
&lt;td&gt;Dos archivos de texto con el HTML codificado&lt;/td&gt;
&lt;td&gt;Copias idénticas; análisis del código decodificado sin ejecución.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;El alcance excluyó análisis dinámico de instaladores, descarga de payloads, inspección del backend, ejecución en máquina virtual y correlación forense con registros internos del supuesto empleador. La evidencia permite identificar el mecanismo de engaño y las instrucciones de descarga y ejecución con alta confianza. &lt;strong&gt;No permite identificar con certeza el malware final, su autor ni el número de víctimas.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;El reporte documenta que las dos copias del código son binariamente idénticas, con estos SHA-256:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Texto pegado(1).txt  SHA-256:
82d3cd5e14681670ce89c0d78f49e9621230a456fe5b09618c08ba85fab5512e

Texto pegado(2).txt  SHA-256:
82d3cd5e14681670ce89c0d78f49e9621230a456fe5b09618c08ba85fab5512e

HTML decodificado  SHA-256:
425ffcda4caa5fa4d09d256a306425296a77540e4a79bc309ec9d306a81b93de
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Los hashes corresponden al &lt;strong&gt;código de la página&lt;/strong&gt;, no a los ejecutables ofrecidos. No hay hash del payload final porque no se descargó. Las copias originales no forman parte de los archivos públicos de este artículo.&lt;/p&gt;

&lt;h2 id="cadena-ataque"&gt;3. Cadena de ataque reconstruida&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[Vacante WordPress Jobs / correo de seguimiento]
                    |
[Texto visible: workspace.google.com]
                    |
[Destino: sites.google[.]com/view/loop-join/workspace]
                    |
[Iframe: lokolutikov[.]xyz/workspace1.html]
                    |
[Formulario de correo -&amp;gt; formulario Access key]
                    |
[POST /api/verify, land_id: 32]
                    |
[Si la respuesta indica success]
                    |
[Animación de validación + error fabricado]
                    |
[WORKSPACE_AUTH_CERT_EXPIRED]
                    |
[Falsa reparación]
          +---------+----------+
          |                    |
[Descargar instalador]   [Copiar comando]
          |                    |
          +---------+----------+
                    |
[EJECUCIÓN POR EL USUARIO]
                    |
[Descarga / ejecución de código externo]
[Efectos posteriores no analizados]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;La transición de &lt;code&gt;Submit&lt;/code&gt; al error requiere que la API acepte la clave. Si devuelve &lt;code&gt;success: false&lt;/code&gt;, la función muestra «Invalid key» o el error recibido y permite otro intento. &lt;strong&gt;No confirmé qué claves reconoce el servidor.&lt;/strong&gt; La fase posterior está reconstruida a partir del código; no la activé en el sitio real.&lt;/p&gt;

&lt;h2 id="suplantacion"&gt;4. Suplantación de Google mediante una página incrustada&lt;/h2&gt;

&lt;p&gt;El enlace real llevaba a &lt;code&gt;hxxps://sites.google[.]com/view/loop-join/workspace&lt;/code&gt;. Google Sites es un servicio legítimo donde terceros pueden publicar contenido. El dominio de alojamiento no garantiza que Google haya desarrollado o autorizado una página incrustada.&lt;/p&gt;

&lt;p&gt;La interfaz imitaba el logotipo, la tipografía, los iconos de Gmail, Drive y Meet y el mensaje «The better way to work». El botón observado invocaba una función JavaScript local en lugar de redirigir al alta oficial:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;onclick=&lt;/span&gt;&lt;span class="s"&gt;"event.preventDefault();openJoin(this)"&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"button"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;span&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"button__content"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Join to Workspace&lt;span class="nt"&gt;&amp;lt;/span&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F21iizeh4a3oqs8zfljvl.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F21iizeh4a3oqs8zfljvl.webp" alt="Imitación de la página comercial de Google Workspace con una dirección de Google Sites visible en el navegador." width="799" height="463"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Figura 2. La apariencia de Workspace dentro de una página de Google Sites.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;El botón abría el campo «Workspace mail». Introduje un correo ficticio y el formulario avanzó a «Access key». Ese avance solo demuestra una &lt;strong&gt;validación local del formato del correo&lt;/strong&gt;, no una autenticación de identidad en el servidor.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5euyllahz5ew4vd7u5p7.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5euyllahz5ew4vd7u5p7.webp" alt="Primera etapa del formulario falso: campo Workspace mail para introducir una dirección de correo." width="799" height="516"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Figura 3. Primera etapa del formulario.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fox01k2qviyeb0d1hvzet.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fox01k2qviyeb0d1hvzet.webp" alt="Segunda etapa del formulario falso: solicita Access key y muestra el botón Submit." width="799" height="516"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Figura 4. Me detuve aquí, antes de introducir la clave o pulsar &lt;code&gt;Submit&lt;/code&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;h2 id="iframe-api"&gt;5. Localización del iframe y del servidor externo&lt;/h2&gt;

&lt;p&gt;En &lt;strong&gt;Event Listeners&lt;/strong&gt; de DevTools, el manejador &lt;code&gt;click&lt;/code&gt; de &lt;code&gt;button#submit-btn&lt;/code&gt; señalaba &lt;code&gt;workspace1.html&lt;/code&gt;. Su ámbito (&lt;code&gt;Window&lt;/code&gt;, &lt;code&gt;document&lt;/code&gt;, &lt;code&gt;location&lt;/code&gt;) apuntaba a &lt;code&gt;hxxps://lokolutikov[.]xyz/workspace1.html&lt;/code&gt;. El botón pertenecía a un documento externo al formulario oficial de Google.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm7hxgr1k8ifb9vbr66sd.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm7hxgr1k8ifb9vbr66sd.webp" alt="DevTools muestra el manejador onclick de Submit en workspace1.html dentro del dominio externo del iframe." width="800" height="177"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Figura 5. Ubicación del código responsable de &lt;code&gt;Submit&lt;/code&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;La página definía esta configuración, aquí neutralizada:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;API_BASE&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;hxxps://lokolutikov[.]xyz/&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// Dominio neutralizado.&lt;/span&gt;
&lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;LAND_ID&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;32&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Ruta&lt;/th&gt;
&lt;th&gt;Método observado o identificado&lt;/th&gt;
&lt;th&gt;Uso en el código&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/api/commands?land_id=32&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;GET&lt;/td&gt;
&lt;td&gt;Recuperar enlaces y comandos por plataforma.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/api/verify&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;POST&lt;/td&gt;
&lt;td&gt;Validar el código y asignar identificadores de campaña.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/api/copy&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;POST&lt;/td&gt;
&lt;td&gt;Registrar clics en «Copy».&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/api/download&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;POST&lt;/td&gt;
&lt;td&gt;Obtener una URL que después puede abrirse en otra pestaña.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/api/downloadmac&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;POST&lt;/td&gt;
&lt;td&gt;Registrar la interacción con la descarga para Mac.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;El código también contempla el parámetro &lt;code&gt;v&lt;/code&gt;: si existe, guarda su valor en &lt;code&gt;localStorage&lt;/code&gt; y envía una verificación con &lt;code&gt;type: 'visited'&lt;/code&gt;. Ese comportamiento no se observó en mi prueba concreta.&lt;/p&gt;

&lt;p&gt;La respuesta de la API capturada fue &lt;code&gt;200 OK&lt;/code&gt;, con &lt;code&gt;Content-Type: application/json&lt;/code&gt; y &lt;code&gt;Access-Control-Allow-Origin: *&lt;/code&gt;. CORS permite que otros orígenes consuman la API; &lt;strong&gt;ese permiso por sí solo no demuestra actividad maliciosa&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxs551u3ukvrxnk5g1pqe.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxs551u3ukvrxnk5g1pqe.webp" alt="Panel Network de DevTools con la solicitud GET a api/commands?land_id=32 y la respuesta del servidor externo." width="548" height="971"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Figura 6. Solicitud de red hacia el dominio externo.&lt;/em&gt;&lt;/p&gt;

&lt;h2 id="base64"&gt;6. Desofuscación del HTML: Base64 como capa de ocultamiento&lt;/h2&gt;

&lt;p&gt;El archivo fuente comenzaba con este patrón. Es un fragmento conceptual; se omite el contenido Base64:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;script&amp;gt;&lt;/span&gt;
    &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;write&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;decodeURIComponent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;escape&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;atob&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;...&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;))));&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;atob&lt;/code&gt; decodifica Base64 y &lt;code&gt;document.write&lt;/code&gt; introduce el HTML resultante en el documento. &lt;strong&gt;Base64 es una codificación reversible sin clave secreta.&lt;/strong&gt; En esta página dificultaba la inspección superficial del texto. &lt;code&gt;decodeURIComponent(escape(...))&lt;/code&gt; es una técnica heredada para convertir texto Unicode.&lt;/p&gt;

&lt;p&gt;Cada copia de origen ocupaba unos 11 MB y producía el mismo HTML de aproximadamente 7,9 MB. Gran parte del volumen correspondía a imágenes y recursos incrustados. La desofuscación documentada se limitó a &lt;strong&gt;leer y decodificar bytes&lt;/strong&gt;, sin evaluar el JavaScript resultante.&lt;/p&gt;

&lt;h2 id="submit"&gt;7. Análisis de submitKey(): qué hace el botón Submit&lt;/h2&gt;

&lt;p&gt;La función lee &lt;code&gt;#access-key&lt;/code&gt;, desactiva temporalmente el botón y transmite JSON al backend. Este extracto está resumido y neutralizado; no es un ejemplo para ejecutar:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;submitKey&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;key&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getElementById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;access-key&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;value&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;trim&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;landId&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;LAND_ID&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="nf"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;apiBase&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;/api/verify&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="na"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;POST&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="na"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Content-Type&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;application/json&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="p"&gt;},&lt;/span&gt;
        &lt;span class="na"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="na"&gt;code&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;land_id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;landId&lt;/span&gt; &lt;span class="p"&gt;}),&lt;/span&gt;
    &lt;span class="p"&gt;})&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;then&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;r&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;then&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;data&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;success&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="nf"&gt;showLoadingSequence&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
            &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="c1"&gt;// Muestra el error de validación del código.&lt;/span&gt;
            &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="p"&gt;});&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;La función no contiene una llamada de ejecución nativa. Tras una respuesta aceptada aparece una &lt;strong&gt;simulación de autenticación&lt;/strong&gt;: &lt;code&gt;showLoadingSequence()&lt;/code&gt; programa los estados con &lt;code&gt;setTimeout&lt;/code&gt; y marca expresamente como fallido el segundo paso. Una vez iniciada esa animación, el fallo está predefinido:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Fragmentos de la secuencia de interfaz analizada.&lt;/span&gt;
&lt;span class="nf"&gt;setTimeout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;function &lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nf"&gt;completeStep&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="nx"&gt;title&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;textContent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Authentication failed&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nx"&gt;sub&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;textContent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Your account could not be verified&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;},&lt;/span&gt; &lt;span class="mi"&gt;3600&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="nf"&gt;setTimeout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;function &lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nf"&gt;showErrorPage&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="p"&gt;},&lt;/span&gt; &lt;span class="mi"&gt;5200&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;El JavaScript fabrica el supuesto problema técnico del equipo. En el material analizado no hay una comprobación auténtica de la caducidad de certificados del sistema operativo.&lt;/p&gt;

&lt;h2 id="error-clickfix"&gt;8. La falsa avería del certificado y el engaño ClickFix&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;showErrorPage()&lt;/code&gt; afirma que no puede establecer una conexión segura y que el dispositivo necesita actualizar certificados. El error utilizado es:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;WORKSPACE_AUTH_CERT_EXPIRED
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;El código usa &lt;code&gt;getOS()&lt;/code&gt; con &lt;code&gt;navigator.userAgent&lt;/code&gt; y &lt;code&gt;navigator.platform&lt;/code&gt; para elegir el flujo Windows o Mac/otros. En móviles detectados por &lt;code&gt;userAgent&lt;/code&gt;, muestra «Device Not Supported» y pide continuar desde un ordenador.&lt;/p&gt;

&lt;p&gt;La pantalla prepara dos vías:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Instalación directa:&lt;/strong&gt; enlaces con &lt;code&gt;data-download-type="exe"&lt;/code&gt; o &lt;code&gt;"dmg"&lt;/code&gt;, reemplazables por las URL de la API.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ClickFix:&lt;/strong&gt; un botón &lt;code&gt;Copy&lt;/code&gt; toma un comando de &lt;code&gt;data-copy&lt;/code&gt;, lo escribe con &lt;code&gt;navigator.clipboard.writeText()&lt;/code&gt; y muestra instrucciones para abrir PowerShell o Terminal y pegarlo. Hay un método alternativo de copia si falla la API del portapapeles.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Las FAQ de la página tranquilizan al visitante. En Windows incluso sugieren superar SmartScreen con «More info» y «Run anyway». Son instrucciones orientadas a conseguir ejecución manual bajo engaño.&lt;/p&gt;

&lt;p&gt;El comportamiento encaja con &lt;strong&gt;T1204.004, User Execution: Malicious Copy and Paste&lt;/strong&gt;, de MITRE ATT&amp;amp;CK [8], además del enlace de phishing inicial. El código prepara el intento; la evidencia no demuestra que la ejecución se completara.&lt;/p&gt;

&lt;h2 id="comandos"&gt;9. Respuesta de /api/commands: instrucciones por plataforma&lt;/h2&gt;

&lt;p&gt;El JSON observado tenía cuatro claves. Estas son las ubicaciones neutralizadas y el comportamiento inferido, sin publicar cadenas completas directamente ejecutables:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Clave&lt;/th&gt;
&lt;th&gt;Indicador observado&lt;/th&gt;
&lt;th&gt;Comportamiento posible&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;exe&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;hxxps://api.certificate[.]rest/installer/CertificateUpdate.application&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Extensión &lt;code&gt;.application&lt;/code&gt;, compatible con instalación ClickOnce en Windows. No descargada ni inspeccionada.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;dmg&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;hxxps://api.certificate[.]rest/Installer%20GoogleCert.scpt&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Termina en &lt;code&gt;.scpt&lt;/code&gt; de AppleScript, aunque la clave se llama &lt;code&gt;dmg&lt;/code&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;windows&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;PowerShell Base64 / UTF-16LE&lt;/td&gt;
&lt;td&gt;Recupera un script remoto, lo interpreta y elimina la copia local.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;mac&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Comando Bash/Unix en Base64&lt;/td&gt;
&lt;td&gt;Descarga un archivo llamado &lt;code&gt;chrome&lt;/code&gt; a &lt;code&gt;/tmp&lt;/code&gt;, lo hace ejecutable y lo inicia en segundo plano.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  9.1 Windows: etapas inferidas del comando decodificado
&lt;/h3&gt;

&lt;p&gt;La cadena usaba &lt;code&gt;-NoProfile -w Normal -e&lt;/code&gt; y Base64 en &lt;strong&gt;UTF-16LE&lt;/strong&gt;. Su decodificación como texto mostró:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Creación del archivo temporal &lt;code&gt;%TEMP%\sys.ps1&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Descarga desde &lt;code&gt;hxxps://racleet[.]top/core&lt;/code&gt; con &lt;code&gt;Start-BitsTransfer&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Alternativa con &lt;code&gt;Invoke-WebRequest&lt;/code&gt; si BITS falla.&lt;/li&gt;
&lt;li&gt;Lectura con &lt;code&gt;Get-Content -Raw&lt;/code&gt; e interpretación con &lt;code&gt;Invoke-Expression&lt;/code&gt; (alias &lt;code&gt;iex&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;Eliminación de la copia temporal con &lt;code&gt;Remove-Item&lt;/code&gt; (alias &lt;code&gt;ri&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;El riesgo es la ejecución de código externo. Borrar el &lt;code&gt;.ps1&lt;/code&gt; después no revierte los efectos que haya producido.&lt;/p&gt;

&lt;h3&gt;
  
  
  9.2 Mac/Unix: etapas inferidas del comando decodificado
&lt;/h3&gt;

&lt;p&gt;El valor de &lt;code&gt;mac&lt;/code&gt; describía esta secuencia:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Descargar un binario de &lt;code&gt;hxxp://109.238.87[.]111/d/unix45351194&lt;/code&gt; a &lt;code&gt;/tmp/chrome&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Aplicarle &lt;code&gt;chmod +x&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Iniciarlo en segundo plano, descartando salida estándar y errores, con &lt;code&gt;disown&lt;/code&gt; al final.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;El nombre &lt;code&gt;chrome&lt;/code&gt; no acredita que el archivo sea Google Chrome. Puede dar una apariencia familiar al binario. Como no lo descargué, su arquitectura, hash, capacidades y familia de malware quedan sin determinar.&lt;/p&gt;

&lt;h3&gt;
  
  
  9.3 Qué información no puedo afirmar
&lt;/h3&gt;

&lt;p&gt;Sin analizar los binarios no puedo atribuirles robo de contraseñas o criptomonedas, persistencia en &lt;code&gt;LaunchDaemons&lt;/code&gt; ni exfiltración de cookies. Esas capacidades están documentadas en campañas comparables y en malware asociado a infraestructura relacionada, &lt;strong&gt;pero no se verificaron en el archivo concreto de esta URL&lt;/strong&gt;.&lt;/p&gt;

&lt;h2 id="telemetria"&gt;10. Telemetría y comprobación de billeteras&lt;/h2&gt;

&lt;p&gt;El código contiene &lt;code&gt;logCopy()&lt;/code&gt;, &lt;code&gt;logDownload()&lt;/code&gt; y &lt;code&gt;logDownloadMac()&lt;/code&gt;. La primera y la tercera envían eventos a una API; la segunda puede solicitar una URL al backend antes de abrirla. Un &lt;code&gt;MutationObserver&lt;/code&gt; aplica comandos y enlaces a elementos añadidos dinámicamente al DOM.&lt;/p&gt;

&lt;p&gt;La rutina &lt;code&gt;detectWallets()&lt;/code&gt; comprueba propiedades expuestas por proveedores de billeteras como MetaMask, Rabby, Phantom, Coinbase Wallet y Exodus. Una vacante WordPress no necesita conocer las extensiones de criptomonedas del navegador.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;No encontré una transmisión demostrada de esa lista a un servidor en el fragmento analizado.&lt;/strong&gt; Podría ser código reutilizado o una capacidad preparada para otro momento. No afirmo acceso a billeteras ni robo de fondos.&lt;/p&gt;

&lt;h2 id="indicadores"&gt;11. Indicadores de compromiso (IOC) y observables&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;Los IOC sirven para investigación y bloqueo. Encontrarlos en un registro o consultar su reputación no basta para demostrar que un equipo está infectado. Son observables del análisis del 5 de noviembre de 2026, no una validación de su estado actual.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tipo&lt;/th&gt;
&lt;th&gt;Indicador neutralizado&lt;/th&gt;
&lt;th&gt;Papel y confianza&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Remitente&lt;/td&gt;
&lt;td&gt;&lt;code&gt;famewunozeno01@gmail[.]com&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Remitente y contacto del anuncio (alta).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Entrada&lt;/td&gt;
&lt;td&gt;&lt;code&gt;hxxps://sites.google[.]com/view/loop-join/workspace&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Señuelo en Sites (alta).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Iframe&lt;/td&gt;
&lt;td&gt;&lt;code&gt;hxxps://lokolutikov[.]xyz/workspace1.html&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Código del formulario (alta).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;API&lt;/td&gt;
&lt;td&gt;&lt;code&gt;hxxps://lokolutikov[.]xyz/api/commands?land_id=32&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Entrega de instrucciones por sistema (alta).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;API&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;/api/verify&lt;/code&gt;, &lt;code&gt;/api/copy&lt;/code&gt;, &lt;code&gt;/api/download&lt;/code&gt;, &lt;code&gt;/api/downloadmac&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Control y registro (alta, código estático).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Identificador&lt;/td&gt;
&lt;td&gt;&lt;code&gt;land_id=32&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Configuración de la página (alta).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Windows&lt;/td&gt;
&lt;td&gt;&lt;code&gt;hxxps://racleet[.]top/core&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Origen del script según el comando (alta, no descargado).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Windows&lt;/td&gt;
&lt;td&gt;&lt;code&gt;hxxps://api.certificate[.]rest/installer/CertificateUpdate.application&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Descarga indicada en JSON (alta, no descargada).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;macOS&lt;/td&gt;
&lt;td&gt;&lt;code&gt;hxxps://api.certificate[.]rest/Installer%20GoogleCert.scpt&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Descarga indicada en JSON (alta, no descargada).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Unix/macOS&lt;/td&gt;
&lt;td&gt;&lt;code&gt;109.238.87[.]111&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;IP de descarga del binario (alta).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Unix/macOS&lt;/td&gt;
&lt;td&gt;&lt;code&gt;hxxp://109.238.87[.]111/d/unix45351194&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Ruta de entrega, contenido sin validar (alta).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Archivo previsto&lt;/td&gt;
&lt;td&gt;&lt;code&gt;%TEMP%\sys.ps1&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Script temporal si se ejecuta el comando Windows.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Archivo previsto&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/tmp/chrome&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Archivo local si se ejecuta el comando Unix.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Error&lt;/td&gt;
&lt;td&gt;&lt;code&gt;WORKSPACE_AUTH_CERT_EXPIRED&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Texto estático del engaño (alta).&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Correlación externa con la IP 109.238.87[.]111
&lt;/h3&gt;

&lt;p&gt;El reporte recoge otras rutas de distribución de malware en &lt;strong&gt;URLhaus&lt;/strong&gt; para esa IP desde septiembre de 2026 [4]. El artículo de &lt;strong&gt;VirusTotal&lt;/strong&gt; del 13 de octubre de 2026 también documenta un infostealer macOS que usa la misma dirección como receptor de exfiltración [5].&lt;/p&gt;

&lt;p&gt;La correlación respalda que la IP ha participado en actividad maliciosa. &lt;strong&gt;No demuestra que &lt;code&gt;/d/unix45351194&lt;/code&gt; pertenezca al mismo actor, familia u operación.&lt;/strong&gt; Un servidor puede alojar campañas distintas; faltan hashes coincidentes, muestras analizadas u otros datos que permitan una atribución común.&lt;/p&gt;

&lt;h2 id="mitre"&gt;12. Mapeo orientativo MITRE ATT&amp;amp;CK&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Técnica&lt;/th&gt;
&lt;th&gt;Relación con el caso&lt;/th&gt;
&lt;th&gt;Estado&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1566/002/" rel="noopener noreferrer"&gt;T1566.002: Spearphishing Link&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Enlace en el correo de reclutamiento.&lt;/td&gt;
&lt;td&gt;Observado.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1036/" rel="noopener noreferrer"&gt;T1036: Masquerading&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Marca e interfaz de Google y supuesto certificado.&lt;/td&gt;
&lt;td&gt;Observado en la página.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1027/" rel="noopener noreferrer"&gt;T1027: Obfuscated Files or Information&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;HTML y comandos Base64.&lt;/td&gt;
&lt;td&gt;Observado.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1204/004/" rel="noopener noreferrer"&gt;T1204.004: Malicious Copy and Paste&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Instrucciones para copiar y ejecutar comandos.&lt;/td&gt;
&lt;td&gt;Intento preparado; ejecución no demostrada.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1204/002/" rel="noopener noreferrer"&gt;T1204.002: Malicious File&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Descargas de supuestos instaladores.&lt;/td&gt;
&lt;td&gt;Intento preparado; ejecución no demostrada.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1059/001/" rel="noopener noreferrer"&gt;T1059.001: PowerShell&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Comando Windows para ejecutar un script remoto.&lt;/td&gt;
&lt;td&gt;Entregado; ejecución no observada.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1059/004/" rel="noopener noreferrer"&gt;T1059.004: Unix Shell&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Comando &lt;code&gt;mac&lt;/code&gt; para iniciar un archivo remoto.&lt;/td&gt;
&lt;td&gt;Entregado; ejecución no observada.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1105/" rel="noopener noreferrer"&gt;T1105: Ingress Tool Transfer&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Descarga de software externo.&lt;/td&gt;
&lt;td&gt;Intención inferida; descarga no observada en mi equipo.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Es una clasificación analítica, no una afirmación de que todas las técnicas se completaran [6][7][8].&lt;/p&gt;

&lt;h2 id="impacto"&gt;13. Evaluación del impacto y de mi equipo&lt;/h2&gt;

&lt;p&gt;Estas fueron las acciones durante la investigación:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Abrí el sitio en una ventana de incógnito.&lt;/li&gt;
&lt;li&gt;Introduje un correo ficticio.&lt;/li&gt;
&lt;li&gt;Avancé hasta el formulario de clave y me detuve antes de introducirla o pulsar &lt;code&gt;Submit&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Mantuve las cargas ofrecidas sin descargar ni ejecutar.&lt;/li&gt;
&lt;li&gt;Usé DevTools para examinar el DOM, las solicitudes HTTP y el JavaScript.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Con ese alcance, &lt;strong&gt;no hay evidencia de ejecución de la carga maliciosa&lt;/strong&gt;. La página sí pudo recibir datos normales de navegación: IP pública, navegador, idioma o la dirección ficticia si la recogió o transmitió. Eso no acredita control del equipo.&lt;/p&gt;

&lt;p&gt;Conviene cerrar la página, revisar las descargas, actualizar el navegador y comprobar si se concedieron permisos imprevistos. Las acciones descritas no justifican afirmar una infección ni recomendar un formateo. &lt;strong&gt;Incógnito no es un sandbox de seguridad&lt;/strong&gt;: limita el uso de las sesiones habituales, pero no aísla la ejecución de un comando.&lt;/p&gt;

&lt;p&gt;Si otra persona sí ejecutó uno de los comandos o instaladores, el riesgo cambia. Debe suspender las tareas sensibles en ese sistema, aislarlo de la red cuando sea viable, conservar evidencias y consultar a un profesional de respuesta a incidentes. Las credenciales deben protegerse desde otro dispositivo confiable.&lt;/p&gt;

&lt;h2 id="recomendaciones"&gt;14. Recomendaciones defensivas para desarrolladores y candidatos&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Comprueba el destino real del hipervínculo, además de su texto visible.&lt;/li&gt;
&lt;li&gt;Desconfía de un onboarding que exija instalar «certificados» mediante PowerShell, Terminal o descargas no verificadas.&lt;/li&gt;
&lt;li&gt;Compara el dominio visible con el documento incrustado y los dominios de &lt;strong&gt;Network&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Revisa con cautela que la descripción del proyecto quede condicionada a una actualización local.&lt;/li&gt;
&lt;li&gt;Identifica al empleador y su infraestructura antes de introducir credenciales o tokens en formularios externos.&lt;/li&gt;
&lt;li&gt;Para investigar, prioriza análisis estático o entornos aislados. No ejecutes los comandos decodificados ni las cargas.&lt;/li&gt;
&lt;li&gt;Conserva el mensaje original, las URL, capturas, fecha, código y hashes para un reporte de abuso.&lt;/li&gt;
&lt;li&gt;Protege credenciales, cookies, direcciones del candidato y datos sensibles de los encabezados antes de publicar evidencias.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Para equipos de seguridad, merece atención la combinación de Google Sites con iframes externos, APIs de configuración de cargas e instrucciones de copia de PowerShell o Unix. Eso no justifica bloquear todo Google Sites ni cualquier uso benigno de Base64.&lt;/p&gt;

&lt;h2 id="reportar"&gt;15. Dónde reportar la campaña y qué enviar&lt;/h2&gt;

&lt;p&gt;Estos son canales de reporte, &lt;strong&gt;no una afirmación de que ya haya presentado denuncias o conseguido retiradas&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Prioridad A. Google Safe Browsing y Google Sites
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://safebrowsing.google.com/safebrowsing/report_phish/" rel="noopener noreferrer"&gt;Google Safe Browsing: phishing&lt;/a&gt;. Aporta la URL de Sites y la del iframe. Describe la suplantación y las falsas instrucciones de seguridad [3].&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://safebrowsing.google.com/safebrowsing/report_badware/" rel="noopener noreferrer"&gt;Google Safe Browsing: malware&lt;/a&gt;. Explica que la página distribuidora conduce a instrucciones de descarga y ejecución.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://support.google.com/sites/answer/116262" rel="noopener noreferrer"&gt;Google Sites: Report abuse&lt;/a&gt;. El procedimiento documentado usa el menú de tres puntos y «Report abuse» [9]. No exige completar el formulario. Evita volver a abrir el sitio sospechoso únicamente para probar su flujo.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Prioridad B. WordPress Jobs
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://jobs.wordpress.net/feedback/" rel="noopener noreferrer"&gt;Formulario oficial de WordPress Jobs&lt;/a&gt;. Adjunta título, URL exacta del anuncio, remitente, correo de seguimiento y evidencia del enlace engañoso. Solicita una revisión y, si procede, su retirada [1][2].&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Prioridad C. Redes de detección y distribución de malware
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://feedback.smartscreen.microsoft.com/en-us/wdsi/support/report-unsafe-site" rel="noopener noreferrer"&gt;Microsoft Defender SmartScreen&lt;/a&gt;. Selecciona phishing o malware y aporta las URL de entrada e iframe con un resumen [10].&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://urlhaus.abuse.ch/" rel="noopener noreferrer"&gt;URLhaus&lt;/a&gt;. Recibe URL que &lt;strong&gt;sirven directamente cargas de malware&lt;/strong&gt;, no cualquier página de phishing. Requiere autenticación; revisa su política y si ya existe un reporte antes de enviar una ruta [11].&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.ic3.gov/" rel="noopener noreferrer"&gt;IC3 / FBI&lt;/a&gt;. Es otra vía para fraude cibernético, especialmente si hubo impacto o víctimas. Describe observaciones y evita atribuciones especulativas [12].&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;También puede avisarse al alojamiento o registrador cuando tenga un canal de abuso verificable. Alojar el contenido no demuestra participación consciente del proveedor.&lt;/p&gt;

&lt;h3&gt;
  
  
  Lista de evidencias para adjuntar
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Correo original, preferiblemente &lt;code&gt;.eml&lt;/code&gt; con encabezados. No lo publiques íntegro si contiene datos personales.&lt;/li&gt;
&lt;li&gt;Captura del enlace visible y su destino real.&lt;/li&gt;
&lt;li&gt;Capturas del formulario y de &lt;code&gt;GET /api/commands?land_id=32&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;JSON con sus cuatro campos, tratado como evidencia potencialmente peligrosa.&lt;/li&gt;
&lt;li&gt;HTML/JavaScript ofuscado y SHA-256. Compártelo de forma privada con el equipo de abuso, en lugar de publicarlo como archivo ejecutable.&lt;/li&gt;
&lt;li&gt;IOC, explicación de la falsa actualización y límites del análisis.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Plantilla de reporte de abuso en inglés
&lt;/h3&gt;

&lt;p&gt;Los indicadores de esta versión pública también están neutralizados. Un equipo de abuso puede necesitar los originales, enviados por su canal privado.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Subject: Phishing / ClickFix malware distribution impersonating Google Workspace via a WordPress job offer&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I received a follow-up email from &lt;code&gt;famewunozeno01@gmail[.]com&lt;/code&gt; concerning the public WordPress Jobs listing “WordPress Developer (Project, Remote)” (NovenzaDigital, posted October 31, 2026). The email displayed &lt;code&gt;workspace.google.com&lt;/code&gt;, but the actual hyperlink pointed to &lt;code&gt;sites.google[.]com/view/loop-join/workspace&lt;/code&gt;. The page embeds &lt;code&gt;lokolutikov[.]xyz/workspace1.html&lt;/code&gt;, which impersonates Google Workspace, asks for an email and an access key, and contacts &lt;code&gt;/api/commands?land_id=32&lt;/code&gt;. The API response supplies platform-specific download links and Base64-encoded commands. Static analysis of the page shows that, after successful key verification, it deliberately displays a fake authentication/certificate error and prompts users to download software or paste commands into PowerShell/Terminal. I did not execute the payloads. Please investigate the URLs and associated content. Screenshots, source hashes and the observed JSON are available as evidence.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2 id="limitaciones"&gt;16. Limitaciones, atribución y cuestiones pendientes&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;El análisis no incluyó encabezados SMTP completos: SPF, DKIM, DMARC y la cadena de servidores quedaron sin verificar.&lt;/li&gt;
&lt;li&gt;Desconozco quién controla la cuenta de Gmail, la vacante o los dominios. La coincidencia de correo vincula el anuncio con el mensaje, pero no identifica a una persona física.&lt;/li&gt;
&lt;li&gt;La reacción a &lt;code&gt;data.success&lt;/code&gt; procede del HTML. No activé esa fase en el sitio real.&lt;/li&gt;
&lt;li&gt;El backend &lt;code&gt;/api/verify&lt;/code&gt; y las descargas no se auditaron internamente. El código puede haber cambiado después de la captura.&lt;/li&gt;
&lt;li&gt;Al no descargar ni ejecutar las cargas, no hay hash de esos archivos ni diagnóstico de su familia de malware.&lt;/li&gt;
&lt;li&gt;La coincidencia de IP con VirusTotal es una correlación de infraestructura. No prueba que ambas campañas sean una misma operación.&lt;/li&gt;
&lt;li&gt;La evidencia no permite vincular el caso con operaciones norcoreanas, grupos APT, una nacionalidad o los remitentes de otros correos sospechosos mencionados durante la investigación.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id="conclusion"&gt;17. Conclusión&lt;/h2&gt;

&lt;p&gt;La cadena documentada empieza en una candidatura real y continúa por un correo de seguimiento, una interfaz que suplanta Google, un iframe externo y una verificación de clave. Después, según el código, aparece el certificado caducado ficticio y se ofrecen instaladores o comandos para que el usuario los ejecute.&lt;/p&gt;

&lt;p&gt;El HTML y el JSON permiten clasificar el intento como ingeniería social consistente con &lt;strong&gt;ClickFix&lt;/strong&gt;. Sobre mi equipo, la conclusión es más acotada: no observé evidencia de ejecución y me detuve antes de introducir la clave o descargar archivos.&lt;/p&gt;

&lt;p&gt;El caso me permitió aplicar conocimientos de desarrollo web a mi formación en ciberseguridad: seguir un evento hasta su iframe, revisar una API, interpretar JavaScript ofuscado y separar observaciones de inferencias. La legitimidad del alojamiento no se transmite automáticamente a su contenido incrustado.&lt;/p&gt;

&lt;p&gt;Mi trabajo habitual como &lt;a href="https://fernandoperalta.xyz/es/desarrollador-wordpress/" rel="noopener noreferrer"&gt;desarrollador WordPress&lt;/a&gt; explica por qué recibí ese señuelo. En &lt;a href="https://fernandoperalta.xyz/es/#sobre-mi" rel="noopener noreferrer"&gt;mi portafolio y formación&lt;/a&gt; puedes consultar mi experiencia y mis estudios de Ingeniería en Ciberseguridad en UVEG.&lt;/p&gt;

&lt;h2 id="preguntas"&gt;Preguntas frecuentes sobre este intento de ClickFix&lt;/h2&gt;

&lt;h3&gt;
  
  
  ¿Qué es un ataque ClickFix?
&lt;/h3&gt;

&lt;p&gt;Es un engaño que presenta un error técnico falso para que la persona copie y ejecute un comando como supuesta reparación. En este caso el pretexto era &lt;code&gt;WORKSPACE_AUTH_CERT_EXPIRED&lt;/code&gt;, generado por el propio JavaScript de la página.&lt;/p&gt;

&lt;h3&gt;
  
  
  ¿Me infecté si solo abrí el enlace de una oferta de trabajo?
&lt;/h3&gt;

&lt;p&gt;Abrir un enlace, por sí solo, no demuestra una infección. En este caso no encontré evidencia de ejecución de la carga con las acciones descritas. Eso no garantiza la seguridad de cualquier página ni descarta otras vulnerabilidades. Si ejecutaste un comando o instalador, requiere una evaluación diferente.&lt;/p&gt;

&lt;h3&gt;
  
  
  ¿Un sitio en Google Sites puede suplantar Google Workspace?
&lt;/h3&gt;

&lt;p&gt;Sí. Google Sites permite publicar contenido de terceros y esta página incrustaba un formulario de otro dominio. El dominio legítimo del alojamiento no autentica la organización que publicó el contenido.&lt;/p&gt;

&lt;h3&gt;
  
  
  ¿Pulsar Submit ejecutaba PowerShell automáticamente?
&lt;/h3&gt;

&lt;p&gt;En el código analizado, &lt;code&gt;Submit&lt;/code&gt; verificaba la clave con la API. Una respuesta aceptada iniciaba la secuencia del error falso. No identifiqué una llamada de ejecución nativa desde ese botón; el flujo posterior pedía intervención manual.&lt;/p&gt;

&lt;h3&gt;
  
  
  ¿El modo incógnito me protege de ClickFix?
&lt;/h3&gt;

&lt;p&gt;Incógnito limita la persistencia local de la sesión del navegador. No aísla PowerShell, Terminal ni un instalador que ejecutes. Para el análisis conviene usar métodos estáticos o un entorno aislado preparado para investigación.&lt;/p&gt;

&lt;h2 id="referencias"&gt;Referencias y fuentes verificables&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;a href="https://jobs.wordpress.net/job/wordpress-developer-project-remote/" rel="noopener noreferrer"&gt;WordPress Jobs: WordPress Developer (Project, Remote)&lt;/a&gt;. Oferta, fecha, empresa declarada y correo de aplicación documentados en el reporte del 5 de noviembre de 2026. El anuncio puede cambiar o retirarse.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://jobs.wordpress.net/faq/" rel="noopener noreferrer"&gt;WordPress Jobs: FAQ&lt;/a&gt;. Moderación y contacto.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://developers.google.com/search/help/report-quality-issues" rel="noopener noreferrer"&gt;Google Search Central: Report Spam, Phishing, or Malware&lt;/a&gt;. Mecanismos de reporte.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://urlhaus.abuse.ch/host/109.238.87.111/" rel="noopener noreferrer"&gt;URLhaus: host 109.238.87[.]111&lt;/a&gt;. Historial de otras URL asociadas a malware; enlace a la plataforma de análisis, no al servidor sospechoso.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://blog.virustotal.com/2026/10/introducing-macos-mirage.html.html" rel="noopener noreferrer"&gt;VirusTotal: Introducing macOS Mirage, 13 de octubre de 2026&lt;/a&gt;. Cita la misma IP como receptor de exfiltración en otro caso. No analiza el archivo de esta campaña.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://attack.mitre.org/techniques/T1566/002/" rel="noopener noreferrer"&gt;MITRE ATT&amp;amp;CK: T1566.002&lt;/a&gt;. Phishing mediante enlace.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://attack.mitre.org/techniques/T1027/" rel="noopener noreferrer"&gt;MITRE ATT&amp;amp;CK: T1027&lt;/a&gt;. Ofuscación y codificación.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://attack.mitre.org/techniques/T1204/004/" rel="noopener noreferrer"&gt;MITRE ATT&amp;amp;CK: T1204.004&lt;/a&gt;. Copia y pega malicioso.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://support.google.com/sites/answer/116262" rel="noopener noreferrer"&gt;Google Sites: Report abuse&lt;/a&gt;. Procedimiento de denuncia.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://feedback.smartscreen.microsoft.com/en-us/wdsi/support/report-unsafe-site" rel="noopener noreferrer"&gt;Microsoft Defender: Report unsafe site&lt;/a&gt;. Reportes de phishing o malware.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://urlhaus.abuse.ch/api/" rel="noopener noreferrer"&gt;URLhaus: política y API&lt;/a&gt;. Criterios de envío y autenticación.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.fbi.gov/how-we-can-help-you/common-frauds-and-scams/spoofing-and-phishing" rel="noopener noreferrer"&gt;FBI: Spoofing and Phishing&lt;/a&gt;. Modalidades y portal IC3.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Nota editorial:&lt;/strong&gt; Las seis capturas proceden de la investigación descrita. Los datos personales del destinatario se ocultaron en la captura original; para este artículo también difuminé y cubrí el código de acceso del correo. El remitente se conserva como observable, sin atribuir su identidad a una persona concreta. Las limitaciones del reporte se mantienen y los indicadores sospechosos se presentan sin enlaces activos.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://fernandoperalta.xyz/es/blog/vacante-wordpress-falsa-ataque-clickfix/" rel="noopener noreferrer"&gt;https://fernandoperalta.xyz/es/blog/vacante-wordpress-falsa-ataque-clickfix/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>cybersecurity</category>
      <category>career</category>
      <category>hacker</category>
    </item>
    <item>
      <title>I applied for a WordPress job and got a ClickFix attack in reply</title>
      <dc:creator>Fernando Peralta</dc:creator>
      <pubDate>Sat, 07 Nov 2026 08:58:29 +0000</pubDate>
      <link>https://dev.to/fernandoperaltacarlos/postule-a-una-vacante-de-wordpress-y-me-respondieron-con-un-ataque-clickfix-21f7</link>
      <guid>https://dev.to/fernandoperaltacarlos/postule-a-una-vacante-de-wordpress-y-me-respondieron-con-un-ataque-clickfix-21f7</guid>
      <description>&lt;p&gt;I applied for a WordPress development job. The reply thanked me for my portfolio and asked me to join a supposed Google Workspace to read the project requirements. The link led to a page that prepared a fake certificate error and offered commands to execute external code.&lt;/p&gt;

&lt;p&gt;I am studying &lt;strong&gt;Cybersecurity Engineering at the Virtual University of the State of Guanajuato (UVEG)&lt;/strong&gt;. This case gave me a chance to apply JavaScript analysis, HTTP traffic inspection and evidence handling to something that reached me through my work as a developer. I documented the mechanism and the limits of what I could establish without executing the payloads.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; ClickFix is a social engineering technique that invents a technical problem to persuade someone to copy and execute a command. In this attempt, a reply to my WordPress Jobs application led to a fake Google Workspace hosted on Google Sites. The HTML and API exposed instructions for Windows and macOS. I stopped before entering the access key; I did not download or execute the payloads and observed no evidence of compromise.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Analysis date:&lt;/strong&gt; November 5, 2026.&lt;br&gt;&lt;br&gt;
&lt;strong&gt;Incident type:&lt;/strong&gt; recruitment phishing, Google Workspace impersonation and delivery of download-and-execute instructions through ClickFix.&lt;br&gt;&lt;br&gt;
&lt;strong&gt;Campaign severity:&lt;/strong&gt; high, because the deception could lead to execution of external software. This assesses the campaign's risk; it does not claim my device was infected.&lt;br&gt;&lt;br&gt;
&lt;strong&gt;Device status:&lt;/strong&gt; no observed compromise; I visited the site, entered a fictitious email address and inspected traffic and code.&lt;br&gt;&lt;br&gt;
&lt;strong&gt;Confidence in the main finding:&lt;/strong&gt; high, based on the source code, screenshots and HTTP response documented in the report.&lt;br&gt;&lt;br&gt;
&lt;strong&gt;Attribution to people, countries, groups or malware families:&lt;/strong&gt; undetermined.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Safety notice:&lt;/strong&gt; Suspicious indicators are defanged (&lt;code&gt;hxxps&lt;/code&gt;, &lt;code&gt;[.]&lt;/code&gt;). Do not open those addresses or execute commands from this campaign. This article retains the full report in an editorial format; it does not distribute executables, malicious scripts or the original HTML. Hashes and technical excerpts come from the documented analysis, not a new execution of the samples.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;
  
  
  In this article
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Executive summary&lt;/li&gt;
&lt;li&gt;The job offer as bait&lt;/li&gt;
&lt;li&gt;Evidence and scope&lt;/li&gt;
&lt;li&gt;Attack chain&lt;/li&gt;
&lt;li&gt;Google impersonation&lt;/li&gt;
&lt;li&gt;Iframe and external API&lt;/li&gt;
&lt;li&gt;Base64 deobfuscation&lt;/li&gt;
&lt;li&gt;The Submit button&lt;/li&gt;
&lt;li&gt;Fake error and ClickFix&lt;/li&gt;
&lt;li&gt;Platform-specific commands&lt;/li&gt;
&lt;li&gt;Telemetry and wallets&lt;/li&gt;
&lt;li&gt;Indicators of compromise&lt;/li&gt;
&lt;li&gt;MITRE ATT&amp;amp;CK&lt;/li&gt;
&lt;li&gt;Impact on my device&lt;/li&gt;
&lt;li&gt;Defensive recommendations&lt;/li&gt;
&lt;li&gt;Where to report and what to send&lt;/li&gt;
&lt;li&gt;Limitations and attribution&lt;/li&gt;
&lt;li&gt;Conclusion&lt;/li&gt;
&lt;li&gt;Frequently asked questions&lt;/li&gt;
&lt;li&gt;References&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  Executive summary
&lt;/h2&gt;

&lt;p&gt;While looking for WordPress projects, I received an email that appeared to be a legitimate response to my application. The sender thanked me for my portfolio and invited me to a supposed Google Workspace collaboration environment to review the project's scope. The visible link text was &lt;code&gt;https://workspace.google.com&lt;/code&gt;, but the destination was a &lt;strong&gt;Google Sites&lt;/strong&gt; page under &lt;code&gt;/view/loop-join/workspace&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The page reproduced the Workspace marketing website. Its “Join to Workspace” button opened an email form and then requested the access key provided in the message. Inspecting event listeners and HTTP requests in Chrome DevTools revealed an &lt;strong&gt;external iframe&lt;/strong&gt; on &lt;code&gt;lokolutikov[.]xyz&lt;/code&gt; and its &lt;code&gt;/api/commands?land_id=32&lt;/code&gt; API.&lt;/p&gt;

&lt;p&gt;The JSON response contained &lt;code&gt;exe&lt;/code&gt;, &lt;code&gt;dmg&lt;/code&gt;, &lt;code&gt;windows&lt;/code&gt; and &lt;code&gt;mac&lt;/code&gt; fields with supposed installers and Base64 commands. Static decoding exposed instructions to download and execute a PowerShell script from &lt;code&gt;racleet[.]top&lt;/code&gt;, or a Unix/macOS binary from &lt;code&gt;109.238.87[.]111&lt;/code&gt;. The supposed “DMG” pointed to an AppleScript &lt;code&gt;.scpt&lt;/code&gt; file.&lt;/p&gt;

&lt;p&gt;The iframe HTML copy used in the analysis contained a Base64 wrapper and roughly 7.9 MB of decoded HTML. A key accepted by &lt;code&gt;/api/verify&lt;/code&gt; would start a verification animation, a &lt;strong&gt;deliberately programmed&lt;/strong&gt; authentication failure and an expired-certificate screen. That screen encouraged software downloads or command copying, a flow consistent with &lt;strong&gt;ClickFix&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The inspected code attempts to persuade the victim to execute a command or installer manually after the fake error. &lt;strong&gt;I did not identify a call that directly executed PowerShell, Bash or AppleScript when &lt;code&gt;Submit&lt;/code&gt; was pressed.&lt;/strong&gt; Entering a key and executing a payload are separate steps.&lt;/p&gt;

&lt;h2 id="job-context"&gt;1. Context: the job offer as bait&lt;/h2&gt;

&lt;p&gt;The listing appeared on &lt;strong&gt;WordPress Jobs&lt;/strong&gt; as &lt;em&gt;WordPress Developer (Project, Remote)&lt;/em&gt;, dated &lt;strong&gt;October 31, 2026&lt;/strong&gt;, with &lt;strong&gt;NovenzaDigital&lt;/strong&gt; as the stated company, a &lt;strong&gt;USD 5,000&lt;/strong&gt; budget and &lt;code&gt;famewunozeno01@gmail[.]com&lt;/code&gt; as the contact address. It requested WordPress, PHP, HTML, CSS and JavaScript experience, including themes, plugins, integrations and maintenance [1]. That budget was in the listing; it was not a personal financial offer I received afterward. Publication also does not establish that WordPress verified the advertiser's identity: the platform says volunteers moderate its listings [2].&lt;/p&gt;

&lt;p&gt;I had replied to that opportunity. I then received an email signed “Tegan” from the same advertised address. It praised my experience, claimed to have reviewed my portfolio and postponed the detailed brief until I joined the supposed workspace.&lt;/p&gt;

&lt;p&gt;The social engineering combined a real application, a plausible administrative task and an artificial requirement: use an access code and later update certificates. The hyperlink text borrowed recognition from a familiar platform.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faanrmb78bhh8x6oxdenx.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faanrmb78bhh8x6oxdenx.webp" alt="Email signed Tegan presenting its link as Google Workspace; the recipient's details and access code are hidden." width="707" height="1536"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Figure 1. The visible link text differed from the actual destination. I blurred and covered the access code for publication.&lt;/em&gt;&lt;/p&gt;

&lt;h2 id="evidence"&gt;2. Available evidence and investigation scope&lt;/h2&gt;

&lt;p&gt;The report is based on these materials collected during the investigation:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Identifier&lt;/th&gt;
&lt;th&gt;Evidence&lt;/th&gt;
&lt;th&gt;Observation scope&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;E-01&lt;/td&gt;
&lt;td&gt;Recruitment email screenshot&lt;/td&gt;
&lt;td&gt;Sender, lure and access code; without complete SMTP headers.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;E-02&lt;/td&gt;
&lt;td&gt;URL copied from the email link&lt;/td&gt;
&lt;td&gt;Actual destination on Google Sites.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;E-03&lt;/td&gt;
&lt;td&gt;Fake Workspace screenshots&lt;/td&gt;
&lt;td&gt;Appearance and email/access-key forms.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;E-04&lt;/td&gt;
&lt;td&gt;DevTools / Network screenshot&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;GET /api/commands?land_id=32&lt;/code&gt;, &lt;code&gt;200 OK&lt;/code&gt; response, JSON type.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;E-05&lt;/td&gt;
&lt;td&gt;JSON copied from DevTools&lt;/td&gt;
&lt;td&gt;Download links and platform-specific commands.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;E-06&lt;/td&gt;
&lt;td&gt;Event-handler screenshot&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;Submit&lt;/code&gt; belongs to the external &lt;code&gt;workspace1.html&lt;/code&gt; iframe.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;E-07&lt;/td&gt;
&lt;td&gt;Two text files containing encoded HTML&lt;/td&gt;
&lt;td&gt;Identical copies; decoded code analyzed without execution.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The scope excluded dynamic installer analysis, payload downloads, backend inspection, virtual-machine execution and forensic correlation with the supposed employer's internal logs. The evidence identifies the deception and download-and-execute instructions with high confidence. &lt;strong&gt;It does not establish the final malware, its author or the number of victims.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The report records the two code copies as byte-for-byte identical, with these SHA-256 values:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Texto pegado(1).txt  SHA-256:
82d3cd5e14681670ce89c0d78f49e9621230a456fe5b09618c08ba85fab5512e

Texto pegado(2).txt  SHA-256:
82d3cd5e14681670ce89c0d78f49e9621230a456fe5b09618c08ba85fab5512e

Decoded HTML  SHA-256:
425ffcda4caa5fa4d09d256a306425296a77540e4a79bc309ec9d306a81b93de
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These hashes identify the &lt;strong&gt;page code&lt;/strong&gt;, not the offered executables. There is no final-payload hash because it was not downloaded. The original code copies are not part of this article's public files.&lt;/p&gt;

&lt;h2 id="attack-chain"&gt;3. Reconstructed attack chain&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[WordPress Jobs listing / follow-up email]
                    |
[Visible text: workspace.google.com]
                    |
[Destination: sites.google[.]com/view/loop-join/workspace]
                    |
[Iframe: lokolutikov[.]xyz/workspace1.html]
                    |
[Email form -&amp;gt; Access key form]
                    |
[POST /api/verify, land_id: 32]
                    |
[If the response indicates success]
                    |
[Verification animation + fabricated error]
                    |
[WORKSPACE_AUTH_CERT_EXPIRED]
                    |
[Fake repair]
          +---------+----------+
          |                    |
[Download installer]     [Copy command]
          |                    |
          +---------+----------+
                    |
[USER EXECUTION]
                    |
[Download / execution of external code]
[Subsequent effects not analyzed]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The transition from &lt;code&gt;Submit&lt;/code&gt; to the error requires the API to accept the key. If it returns &lt;code&gt;success: false&lt;/code&gt;, the function shows “Invalid key” or the supplied error and allows another attempt. &lt;strong&gt;I did not confirm which keys the server accepts.&lt;/strong&gt; The later stage was reconstructed from code; I did not activate it on the live site.&lt;/p&gt;

&lt;h2 id="impersonation"&gt;4. Google impersonation through an embedded page&lt;/h2&gt;

&lt;p&gt;The actual link led to &lt;code&gt;hxxps://sites.google[.]com/view/loop-join/workspace&lt;/code&gt;. Google Sites is a legitimate service where third parties can publish content. Its hosting domain does not guarantee that Google developed or authorized an embedded page.&lt;/p&gt;

&lt;p&gt;The interface copied the logo, typography, Gmail, Drive and Meet icons and “The better way to work” message. The observed button called a local JavaScript function instead of opening the official signup flow:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;onclick=&lt;/span&gt;&lt;span class="s"&gt;"event.preventDefault();openJoin(this)"&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"button"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;span&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"button__content"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Join to Workspace&lt;span class="nt"&gt;&amp;lt;/span&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F21iizeh4a3oqs8zfljvl.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F21iizeh4a3oqs8zfljvl.webp" alt="Imitation Google Workspace marketing page with a Google Sites address visible in the browser." width="799" height="463"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Figure 2. Workspace's appearance inside a Google Sites page.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The button opened a “Workspace mail” field. I entered a fictitious address and the form advanced to “Access key.” This only demonstrates &lt;strong&gt;local email-format validation&lt;/strong&gt;, not server-side identity authentication.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5euyllahz5ew4vd7u5p7.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5euyllahz5ew4vd7u5p7.webp" alt="First stage of the fake form: a Workspace mail field requesting an email address." width="799" height="516"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Figure 3. First stage of the form.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fox01k2qviyeb0d1hvzet.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fox01k2qviyeb0d1hvzet.webp" alt="Second stage of the fake form: an Access key field and a Submit button." width="799" height="516"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Figure 4. I stopped here, before entering the key or pressing &lt;code&gt;Submit&lt;/code&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;h2 id="iframe-api"&gt;5. Locating the iframe and external server&lt;/h2&gt;

&lt;p&gt;In DevTools &lt;strong&gt;Event Listeners&lt;/strong&gt;, the &lt;code&gt;click&lt;/code&gt; handler on &lt;code&gt;button#submit-btn&lt;/code&gt; pointed to &lt;code&gt;workspace1.html&lt;/code&gt;. Its scope (&lt;code&gt;Window&lt;/code&gt;, &lt;code&gt;document&lt;/code&gt;, &lt;code&gt;location&lt;/code&gt;) referenced &lt;code&gt;hxxps://lokolutikov[.]xyz/workspace1.html&lt;/code&gt;. The button belonged to an external document rather than Google's official form.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm7hxgr1k8ifb9vbr66sd.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm7hxgr1k8ifb9vbr66sd.webp" alt="DevTools locates Submit's onclick handler in workspace1.html on the iframe's external domain." width="800" height="177"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Figure 5. Location of the code responsible for &lt;code&gt;Submit&lt;/code&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The page defined this configuration, defanged here:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;API_BASE&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;hxxps://lokolutikov[.]xyz/&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// Defanged domain.&lt;/span&gt;
&lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;LAND_ID&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;32&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Route&lt;/th&gt;
&lt;th&gt;Observed or identified method&lt;/th&gt;
&lt;th&gt;Purpose in the code&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/api/commands?land_id=32&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;GET&lt;/td&gt;
&lt;td&gt;Retrieve platform-specific links and commands.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/api/verify&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;POST&lt;/td&gt;
&lt;td&gt;Validate the code and assign campaign identifiers.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/api/copy&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;POST&lt;/td&gt;
&lt;td&gt;Record “Copy” clicks.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/api/download&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;POST&lt;/td&gt;
&lt;td&gt;Obtain a URL that may later open in another tab.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/api/downloadmac&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;POST&lt;/td&gt;
&lt;td&gt;Record interaction with the Mac download.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The code also handles a &lt;code&gt;v&lt;/code&gt; query parameter: if present, it stores its value in &lt;code&gt;localStorage&lt;/code&gt; and sends verification with &lt;code&gt;type: 'visited'&lt;/code&gt;. This behavior was not observed in my specific test.&lt;/p&gt;

&lt;p&gt;The captured API response was &lt;code&gt;200 OK&lt;/code&gt;, with &lt;code&gt;Content-Type: application/json&lt;/code&gt; and &lt;code&gt;Access-Control-Allow-Origin: *&lt;/code&gt;. CORS allows other origins to consume the API; &lt;strong&gt;that permission alone does not prove malicious activity&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxs551u3ukvrxnk5g1pqe.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxs551u3ukvrxnk5g1pqe.webp" alt="DevTools Network panel showing the GET request to api/commands?land_id=32 and the external server's response." width="548" height="971"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Figure 6. Network request to the external domain.&lt;/em&gt;&lt;/p&gt;

&lt;h2 id="base64"&gt;6. HTML deobfuscation: Base64 as a concealment layer&lt;/h2&gt;

&lt;p&gt;The source began with this pattern. This is a conceptual excerpt with the Base64 content omitted:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;script&amp;gt;&lt;/span&gt;
    &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;write&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;decodeURIComponent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;escape&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;atob&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;...&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;))));&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;atob&lt;/code&gt; decodes Base64 and &lt;code&gt;document.write&lt;/code&gt; inserts the resulting HTML into the document. &lt;strong&gt;Base64 is a reversible encoding that requires no secret key.&lt;/strong&gt; On this page it made superficial inspection harder. &lt;code&gt;decodeURIComponent(escape(...))&lt;/code&gt; is a legacy Unicode conversion technique.&lt;/p&gt;

&lt;p&gt;Each source copy was roughly 11 MB and produced the same approximately 7.9 MB HTML document. Much of its size came from embedded images and resources. The documented deobfuscation was limited to &lt;strong&gt;reading and decoding bytes&lt;/strong&gt;, without evaluating the resulting JavaScript.&lt;/p&gt;

&lt;h2 id="submit"&gt;7. Analyzing submitKey(): what the Submit button does&lt;/h2&gt;

&lt;p&gt;The function reads &lt;code&gt;#access-key&lt;/code&gt;, temporarily disables the button and sends JSON to the backend. This excerpt is summarized and neutralized; it is not an example to execute:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;submitKey&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;key&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getElementById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;access-key&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;value&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;trim&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;landId&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;LAND_ID&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="nf"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;apiBase&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;/api/verify&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="na"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;POST&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="na"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Content-Type&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;application/json&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="p"&gt;},&lt;/span&gt;
        &lt;span class="na"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="na"&gt;code&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;land_id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;landId&lt;/span&gt; &lt;span class="p"&gt;}),&lt;/span&gt;
    &lt;span class="p"&gt;})&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;then&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;r&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;then&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;data&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;success&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="nf"&gt;showLoadingSequence&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
            &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="c1"&gt;// Display the code-validation error.&lt;/span&gt;
            &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="p"&gt;});&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The function contains no native-execution call. After an accepted response, an &lt;strong&gt;authentication simulation&lt;/strong&gt; appears: &lt;code&gt;showLoadingSequence()&lt;/code&gt; schedules UI states with &lt;code&gt;setTimeout&lt;/code&gt; and explicitly marks the second step as failed. Once the animation starts, that failure is predetermined:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Excerpts from the analyzed interface sequence.&lt;/span&gt;
&lt;span class="nf"&gt;setTimeout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;function &lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nf"&gt;completeStep&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="nx"&gt;title&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;textContent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Authentication failed&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nx"&gt;sub&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;textContent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Your account could not be verified&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;},&lt;/span&gt; &lt;span class="mi"&gt;3600&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="nf"&gt;setTimeout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;function &lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nf"&gt;showErrorPage&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="p"&gt;},&lt;/span&gt; &lt;span class="mi"&gt;5200&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The JavaScript fabricates the supposed technical problem on the device. The analyzed material contains no genuine check of operating-system certificate expiry.&lt;/p&gt;

&lt;h2 id="clickfix-error"&gt;8. The fake certificate fault and ClickFix deception&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;showErrorPage()&lt;/code&gt; claims it cannot establish a secure connection and that the device needs certificate updates. It uses this error:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;WORKSPACE_AUTH_CERT_EXPIRED
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The code calls &lt;code&gt;getOS()&lt;/code&gt; with &lt;code&gt;navigator.userAgent&lt;/code&gt; and &lt;code&gt;navigator.platform&lt;/code&gt; to choose Windows or Mac/other flows. On mobile devices detected through &lt;code&gt;userAgent&lt;/code&gt;, it displays “Device Not Supported” and asks the visitor to continue on a computer.&lt;/p&gt;

&lt;p&gt;The screen prepares two routes:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Direct installation:&lt;/strong&gt; links with &lt;code&gt;data-download-type="exe"&lt;/code&gt; or &lt;code&gt;"dmg"&lt;/code&gt;, replaceable with API-provided URLs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ClickFix:&lt;/strong&gt; a &lt;code&gt;Copy&lt;/code&gt; button takes a command from &lt;code&gt;data-copy&lt;/code&gt;, writes it with &lt;code&gt;navigator.clipboard.writeText()&lt;/code&gt; and shows instructions to open PowerShell or Terminal and paste it. An alternative copying method is available if the clipboard API fails.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The page's FAQs reassure the visitor. On Windows, they even suggest bypassing SmartScreen through “More info” and “Run anyway.” These instructions aim to achieve manual execution through deception.&lt;/p&gt;

&lt;p&gt;The behavior fits &lt;strong&gt;T1204.004, User Execution: Malicious Copy and Paste&lt;/strong&gt;, in MITRE ATT&amp;amp;CK [8], alongside the initial phishing link. The code prepares an attempt; the evidence does not demonstrate completed execution.&lt;/p&gt;

&lt;h2 id="commands"&gt;9. The /api/commands response: platform-specific instructions&lt;/h2&gt;

&lt;p&gt;The observed JSON had four keys. These are the defanged locations and inferred behavior, without publishing complete directly executable command strings:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Key&lt;/th&gt;
&lt;th&gt;Observed indicator&lt;/th&gt;
&lt;th&gt;Possible behavior&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;exe&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;hxxps://api.certificate[.]rest/installer/CertificateUpdate.application&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;.application&lt;/code&gt; extension, consistent with Windows ClickOnce installation. Not downloaded or inspected.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;dmg&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;hxxps://api.certificate[.]rest/Installer%20GoogleCert.scpt&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Ends in AppleScript &lt;code&gt;.scpt&lt;/code&gt;, although the key is called &lt;code&gt;dmg&lt;/code&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;windows&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;PowerShell Base64 / UTF-16LE&lt;/td&gt;
&lt;td&gt;Retrieves a remote script, interprets it and removes the local copy.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;mac&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Base64-encoded Bash/Unix command&lt;/td&gt;
&lt;td&gt;Downloads a file named &lt;code&gt;chrome&lt;/code&gt; to &lt;code&gt;/tmp&lt;/code&gt;, makes it executable and starts it in the background.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  9.1 Windows: stages inferred from the decoded command
&lt;/h3&gt;

&lt;p&gt;The string used &lt;code&gt;-NoProfile -w Normal -e&lt;/code&gt; and &lt;strong&gt;UTF-16LE&lt;/strong&gt; Base64. Decoding it as text showed:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Creation of the temporary file &lt;code&gt;%TEMP%\sys.ps1&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Download from &lt;code&gt;hxxps://racleet[.]top/core&lt;/code&gt; using &lt;code&gt;Start-BitsTransfer&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;An &lt;code&gt;Invoke-WebRequest&lt;/code&gt; fallback if BITS fails.&lt;/li&gt;
&lt;li&gt;Reading through &lt;code&gt;Get-Content -Raw&lt;/code&gt; and interpretation through &lt;code&gt;Invoke-Expression&lt;/code&gt; (alias &lt;code&gt;iex&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;Removal of the temporary copy through &lt;code&gt;Remove-Item&lt;/code&gt; (alias &lt;code&gt;ri&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The risk is execution of external code. Deleting the &lt;code&gt;.ps1&lt;/code&gt; afterward does not undo effects it may have produced.&lt;/p&gt;

&lt;h3&gt;
  
  
  9.2 Mac/Unix: stages inferred from the decoded command
&lt;/h3&gt;

&lt;p&gt;The &lt;code&gt;mac&lt;/code&gt; value described this sequence:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Download a binary from &lt;code&gt;hxxp://109.238.87[.]111/d/unix45351194&lt;/code&gt; to &lt;code&gt;/tmp/chrome&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Apply &lt;code&gt;chmod +x&lt;/code&gt; to it.&lt;/li&gt;
&lt;li&gt;Start it in the background, discarding standard output and errors, with &lt;code&gt;disown&lt;/code&gt; at the end.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The name &lt;code&gt;chrome&lt;/code&gt; does not establish that the file is Google Chrome. It may give the binary a familiar appearance. Because I did not download it, its architecture, hash, capabilities and malware family remain undetermined.&lt;/p&gt;

&lt;h3&gt;
  
  
  9.3 What I cannot claim
&lt;/h3&gt;

&lt;p&gt;Without analyzing the binaries, I cannot attribute password or cryptocurrency theft, &lt;code&gt;LaunchDaemons&lt;/code&gt; persistence or cookie exfiltration to them. Those capabilities are documented in comparable campaigns and malware associated with related infrastructure, &lt;strong&gt;but were not verified in this URL's specific file&lt;/strong&gt;.&lt;/p&gt;

&lt;h2 id="telemetry"&gt;10. Telemetry and wallet checks&lt;/h2&gt;

&lt;p&gt;The code includes &lt;code&gt;logCopy()&lt;/code&gt;, &lt;code&gt;logDownload()&lt;/code&gt; and &lt;code&gt;logDownloadMac()&lt;/code&gt;. The first and third send events to an API; the second may request a download URL from the backend before opening it. A &lt;code&gt;MutationObserver&lt;/code&gt; applies commands and links to elements added dynamically to the DOM.&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;detectWallets()&lt;/code&gt; routine checks properties exposed by wallet providers including MetaMask, Rabby, Phantom, Coinbase Wallet and Exodus. A WordPress vacancy has no need to know which cryptocurrency extensions are in a browser.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I found no demonstrated transmission of that list to a server in the analyzed excerpt.&lt;/strong&gt; It could be reused code or a capability prepared for another stage. I do not claim wallet access or stolen funds.&lt;/p&gt;

&lt;h2 id="indicators"&gt;11. Indicators of compromise (IOC) and observables&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;IOCs support investigation and blocking. Finding one in a log or checking its reputation does not by itself prove infection. These are observables from the November 5, 2026 analysis, not a validation of their current status.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Defanged indicator&lt;/th&gt;
&lt;th&gt;Role and confidence&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Sender&lt;/td&gt;
&lt;td&gt;&lt;code&gt;famewunozeno01@gmail[.]com&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Sender and listing contact (high).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Entry&lt;/td&gt;
&lt;td&gt;&lt;code&gt;hxxps://sites.google[.]com/view/loop-join/workspace&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Sites lure (high).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Iframe&lt;/td&gt;
&lt;td&gt;&lt;code&gt;hxxps://lokolutikov[.]xyz/workspace1.html&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Form code (high).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;API&lt;/td&gt;
&lt;td&gt;&lt;code&gt;hxxps://lokolutikov[.]xyz/api/commands?land_id=32&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;OS-specific instruction delivery (high).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;API&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;/api/verify&lt;/code&gt;, &lt;code&gt;/api/copy&lt;/code&gt;, &lt;code&gt;/api/download&lt;/code&gt;, &lt;code&gt;/api/downloadmac&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Control and logging (high, static code).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Identifier&lt;/td&gt;
&lt;td&gt;&lt;code&gt;land_id=32&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Page configuration (high).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Windows&lt;/td&gt;
&lt;td&gt;&lt;code&gt;hxxps://racleet[.]top/core&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Script source according to the command (high, not downloaded).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Windows&lt;/td&gt;
&lt;td&gt;&lt;code&gt;hxxps://api.certificate[.]rest/installer/CertificateUpdate.application&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Download specified in JSON (high, not downloaded).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;macOS&lt;/td&gt;
&lt;td&gt;&lt;code&gt;hxxps://api.certificate[.]rest/Installer%20GoogleCert.scpt&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Download specified in JSON (high, not downloaded).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Unix/macOS&lt;/td&gt;
&lt;td&gt;&lt;code&gt;109.238.87[.]111&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Binary download IP (high).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Unix/macOS&lt;/td&gt;
&lt;td&gt;&lt;code&gt;hxxp://109.238.87[.]111/d/unix45351194&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Delivery path, contents unvalidated (high).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Intended file&lt;/td&gt;
&lt;td&gt;&lt;code&gt;%TEMP%\sys.ps1&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Temporary script if the Windows command runs.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Intended file&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/tmp/chrome&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Local file if the Unix command runs.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Error&lt;/td&gt;
&lt;td&gt;&lt;code&gt;WORKSPACE_AUTH_CERT_EXPIRED&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Static deception text (high).&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  External correlation with IP 109.238.87[.]111
&lt;/h3&gt;

&lt;p&gt;The report records other malware-distribution paths for that IP in &lt;strong&gt;URLhaus&lt;/strong&gt; from September 2026 onward [4]. The &lt;strong&gt;VirusTotal&lt;/strong&gt; article published on October 13, 2026 also documents a macOS infostealer using the same address as an exfiltration receiver [5].&lt;/p&gt;

&lt;p&gt;This correlation supports the IP's involvement in malicious activity. &lt;strong&gt;It does not demonstrate that &lt;code&gt;/d/unix45351194&lt;/code&gt; belongs to the same actor, family or operation.&lt;/strong&gt; A server can host multiple campaigns; matching hashes, analyzed samples or other data supporting shared attribution are missing.&lt;/p&gt;

&lt;h2 id="mitre"&gt;12. Indicative MITRE ATT&amp;amp;CK mapping&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Technique&lt;/th&gt;
&lt;th&gt;Relationship to this case&lt;/th&gt;
&lt;th&gt;Status&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1566/002/" rel="noopener noreferrer"&gt;T1566.002: Spearphishing Link&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Link in the recruitment email.&lt;/td&gt;
&lt;td&gt;Observed.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1036/" rel="noopener noreferrer"&gt;T1036: Masquerading&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Google branding/interface and supposed certificate.&lt;/td&gt;
&lt;td&gt;Observed on the page.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1027/" rel="noopener noreferrer"&gt;T1027: Obfuscated Files or Information&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Base64 HTML and commands.&lt;/td&gt;
&lt;td&gt;Observed.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1204/004/" rel="noopener noreferrer"&gt;T1204.004: Malicious Copy and Paste&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Instructions to copy and execute commands.&lt;/td&gt;
&lt;td&gt;Prepared attempt; execution not demonstrated.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1204/002/" rel="noopener noreferrer"&gt;T1204.002: Malicious File&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Supposed installer downloads.&lt;/td&gt;
&lt;td&gt;Prepared attempt; execution not demonstrated.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1059/001/" rel="noopener noreferrer"&gt;T1059.001: PowerShell&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Windows command for remote-script execution.&lt;/td&gt;
&lt;td&gt;Delivered; execution not observed.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1059/004/" rel="noopener noreferrer"&gt;T1059.004: Unix Shell&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;mac&lt;/code&gt; command to start a remote file.&lt;/td&gt;
&lt;td&gt;Delivered; execution not observed.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://attack.mitre.org/techniques/T1105/" rel="noopener noreferrer"&gt;T1105: Ingress Tool Transfer&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;External software download.&lt;/td&gt;
&lt;td&gt;Inferred intent; download not observed on my device.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;This is an analytical classification, not a claim that every technique was completed [6][7][8].&lt;/p&gt;

&lt;h2 id="impact"&gt;13. Impact assessment and my device&lt;/h2&gt;

&lt;p&gt;These were my actions during the investigation:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;I opened the site in an incognito window.&lt;/li&gt;
&lt;li&gt;I entered a fictitious email address.&lt;/li&gt;
&lt;li&gt;I advanced to the key form and stopped before entering it or pressing &lt;code&gt;Submit&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;I left the offered payloads undownloaded and unexecuted.&lt;/li&gt;
&lt;li&gt;I used DevTools to inspect the DOM, HTTP requests and JavaScript.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Within that scope, &lt;strong&gt;there is no evidence of payload execution&lt;/strong&gt;. The page could still receive ordinary browsing data: public IP, browser, language or the fictitious address if collected or transmitted. That does not establish control of the device.&lt;/p&gt;

&lt;p&gt;Closing the page, reviewing downloads, updating the browser and checking for unexpected permissions are reasonable steps. The described actions do not justify asserting infection or recommending a system wipe. &lt;strong&gt;Incognito is not a security sandbox&lt;/strong&gt;: it limits use of ordinary browser sessions, but does not isolate command execution.&lt;/p&gt;

&lt;p&gt;If someone did execute a command or installer, the risk changes. They should stop sensitive tasks on that system, isolate it from the network where feasible, preserve evidence and consult an incident-response professional. Credentials should be secured from another trusted device.&lt;/p&gt;

&lt;h2 id="recommendations"&gt;14. Defensive recommendations for developers and candidates&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Check the hyperlink's actual destination as well as its visible text.&lt;/li&gt;
&lt;li&gt;Treat onboarding that demands “certificate” installation through PowerShell, Terminal or unverified downloads as suspicious.&lt;/li&gt;
&lt;li&gt;Compare the visible domain with the embedded document and the domains in &lt;strong&gt;Network&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Be cautious when access to the project brief depends on a local update.&lt;/li&gt;
&lt;li&gt;Verify the employer and its infrastructure before entering credentials or tokens into external forms.&lt;/li&gt;
&lt;li&gt;Prefer static analysis or isolated environments for investigation. Do not execute decoded commands or payloads.&lt;/li&gt;
&lt;li&gt;Preserve the original email, URLs, screenshots, date, code and hashes for an abuse report.&lt;/li&gt;
&lt;li&gt;Protect credentials, cookies, candidate addresses and sensitive header data before publishing evidence.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For security teams, the combination of Google Sites with external iframes, payload-configuration APIs and PowerShell or Unix copying instructions deserves attention. That does not justify blocking all Google Sites or every benign use of Base64.&lt;/p&gt;

&lt;h2 id="reporting"&gt;15. Where to report the campaign and what to send&lt;/h2&gt;

&lt;p&gt;These are reporting channels, &lt;strong&gt;not a claim that I have already filed reports or obtained takedowns&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Priority A. Google Safe Browsing and Google Sites
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://safebrowsing.google.com/safebrowsing/report_phish/" rel="noopener noreferrer"&gt;Google Safe Browsing: phishing&lt;/a&gt;. Include the Sites and iframe URLs. Describe impersonation and the false security instructions [3].&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://safebrowsing.google.com/safebrowsing/report_badware/" rel="noopener noreferrer"&gt;Google Safe Browsing: malware&lt;/a&gt;. Explain that the distributing page leads to download-and-execute instructions.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://support.google.com/sites/answer/116262" rel="noopener noreferrer"&gt;Google Sites: Report abuse&lt;/a&gt;. The documented procedure uses the three-dot menu and “Report abuse” [9]. It does not require completing the form. Avoid reopening the suspicious site merely to test its flow.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Priority B. WordPress Jobs
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://jobs.wordpress.net/feedback/" rel="noopener noreferrer"&gt;Official WordPress Jobs feedback form&lt;/a&gt;. Include the title, exact listing URL, sender, follow-up email and misleading-link evidence. Request review and removal where appropriate [1][2].&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Priority C. Detection and malware-distribution reporting networks
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://feedback.smartscreen.microsoft.com/en-us/wdsi/support/report-unsafe-site" rel="noopener noreferrer"&gt;Microsoft Defender SmartScreen&lt;/a&gt;. Select phishing or malware and provide the entry and iframe URLs with a summary [10].&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://urlhaus.abuse.ch/" rel="noopener noreferrer"&gt;URLhaus&lt;/a&gt;. It accepts URLs that &lt;strong&gt;directly serve malware payloads&lt;/strong&gt;, not every phishing page. Authentication is required; check its policy and existing reports before submitting a path [11].&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.ic3.gov/" rel="noopener noreferrer"&gt;IC3 / FBI&lt;/a&gt;. This is another channel for cyber fraud, particularly if there was impact or victims. Describe observations and avoid speculative attribution [12].&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The hosting provider or registrar may also be notified through a verifiable abuse channel. Hosting the content does not establish the provider's knowing involvement.&lt;/p&gt;

&lt;h3&gt;
  
  
  Evidence checklist for a report
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Original email, preferably &lt;code&gt;.eml&lt;/code&gt; with headers. Do not publish it in full if it contains personal data.&lt;/li&gt;
&lt;li&gt;Screenshot of the visible link and its actual destination.&lt;/li&gt;
&lt;li&gt;Screenshots of the form and &lt;code&gt;GET /api/commands?land_id=32&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;JSON containing all four fields, handled as potentially dangerous evidence.&lt;/li&gt;
&lt;li&gt;Obfuscated HTML/JavaScript and SHA-256. Share it privately with the abuse team instead of publishing an executable file.&lt;/li&gt;
&lt;li&gt;IOCs, explanation of the fake update and analysis limitations.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Abuse-report template in English
&lt;/h3&gt;

&lt;p&gt;Indicators in this public version are also defanged. An abuse team may need the originals sent through its private channel.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Subject: Phishing / ClickFix malware distribution impersonating Google Workspace via a WordPress job offer&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I received a follow-up email from &lt;code&gt;famewunozeno01@gmail[.]com&lt;/code&gt; concerning the public WordPress Jobs listing “WordPress Developer (Project, Remote)” (NovenzaDigital, posted October 31, 2026). The email displayed &lt;code&gt;workspace.google.com&lt;/code&gt;, but the actual hyperlink pointed to &lt;code&gt;sites.google[.]com/view/loop-join/workspace&lt;/code&gt;. The page embeds &lt;code&gt;lokolutikov[.]xyz/workspace1.html&lt;/code&gt;, which impersonates Google Workspace, asks for an email and an access key, and contacts &lt;code&gt;/api/commands?land_id=32&lt;/code&gt;. The API response supplies platform-specific download links and Base64-encoded commands. Static analysis of the page shows that, after successful key verification, it deliberately displays a fake authentication/certificate error and prompts users to download software or paste commands into PowerShell/Terminal. I did not execute the payloads. Please investigate the URLs and associated content. Screenshots, source hashes and the observed JSON are available as evidence.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2 id="limitations"&gt;16. Limitations, attribution and open questions&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The analysis did not include complete SMTP headers: SPF, DKIM, DMARC and the server chain remain unverified.&lt;/li&gt;
&lt;li&gt;I do not know who controls the Gmail account, listing or domains. The shared address links the listing and email, but does not identify an individual.&lt;/li&gt;
&lt;li&gt;The response to &lt;code&gt;data.success&lt;/code&gt; comes from HTML. I did not activate that stage on the live site.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;/api/verify&lt;/code&gt; backend and download endpoints were not internally audited. The code may have changed since capture.&lt;/li&gt;
&lt;li&gt;Because the payloads were neither downloaded nor executed, there are no hashes for those files or malware-family diagnoses.&lt;/li&gt;
&lt;li&gt;The IP overlap with VirusTotal is infrastructure correlation. It does not prove that both campaigns are one operation.&lt;/li&gt;
&lt;li&gt;The evidence cannot link this case to North Korean operations, APT groups, a nationality or senders of other suspicious messages mentioned during the investigation.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id="conclusion"&gt;17. Conclusion&lt;/h2&gt;

&lt;p&gt;The documented chain starts with a real application and continues through a follow-up email, a Google impersonation interface, an external iframe and access-key verification. According to the code, the fake expired certificate then appears and installers or commands are offered for the user to execute.&lt;/p&gt;

&lt;p&gt;The HTML and JSON support classifying this attempt as social engineering consistent with &lt;strong&gt;ClickFix&lt;/strong&gt;. The conclusion about my device is narrower: I observed no evidence of execution and stopped before entering the key or downloading files.&lt;/p&gt;

&lt;p&gt;This case let me apply web-development knowledge to my cybersecurity studies: following an event into its iframe, inspecting an API, interpreting obfuscated JavaScript and separating observations from inferences. Legitimate hosting does not automatically make embedded content trustworthy.&lt;/p&gt;

&lt;p&gt;My usual work as a &lt;a href="https://fernandoperalta.xyz/wordpress-developer/" rel="noopener noreferrer"&gt;WordPress developer&lt;/a&gt; explains why this lure reached me. You can find my experience and Cybersecurity Engineering studies at UVEG in &lt;a href="https://fernandoperalta.xyz/#sobre-mi" rel="noopener noreferrer"&gt;my portfolio and education&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id="questions"&gt;Frequently asked questions about this ClickFix attempt&lt;/h2&gt;

&lt;h3&gt;
  
  
  What is a ClickFix attack?
&lt;/h3&gt;

&lt;p&gt;It is a deception that presents a fake technical error to persuade someone to copy and execute a command as a supposed repair. In this case, the pretext was &lt;code&gt;WORKSPACE_AUTH_CERT_EXPIRED&lt;/code&gt;, generated by the page's own JavaScript.&lt;/p&gt;

&lt;h3&gt;
  
  
  Am I infected if I only opened a job-offer link?
&lt;/h3&gt;

&lt;p&gt;Opening a link alone does not establish infection. In this case, I found no evidence of payload execution from the described actions. That does not guarantee every page is safe or rule out other vulnerabilities. Executing a command or installer requires a different assessment.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can a Google Sites page impersonate Google Workspace?
&lt;/h3&gt;

&lt;p&gt;Yes. Google Sites allows third-party publishing, and this page embedded a form from another domain. The legitimate hosting domain does not authenticate the organization that published the content.&lt;/p&gt;

&lt;h3&gt;
  
  
  Did pressing Submit execute PowerShell automatically?
&lt;/h3&gt;

&lt;p&gt;In the analyzed code, &lt;code&gt;Submit&lt;/code&gt; verified the key through the API. An accepted response started the fake-error sequence. I did not identify a native-execution call from that button; the later flow requested manual action.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does incognito mode protect me from ClickFix?
&lt;/h3&gt;

&lt;p&gt;Incognito limits local browser-session persistence. It does not isolate PowerShell, Terminal or an installer you execute. Static methods or an isolated environment prepared for investigation are more appropriate for analysis.&lt;/p&gt;

&lt;h2 id="references"&gt;References and verifiable sources&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;a href="https://jobs.wordpress.net/job/wordpress-developer-project-remote/" rel="noopener noreferrer"&gt;WordPress Jobs: WordPress Developer (Project, Remote)&lt;/a&gt;. Listing, date, stated company and application email documented in the November 5, 2026 report. The listing may change or be removed.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://jobs.wordpress.net/faq/" rel="noopener noreferrer"&gt;WordPress Jobs: FAQ&lt;/a&gt;. Moderation and contact.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://developers.google.com/search/help/report-quality-issues" rel="noopener noreferrer"&gt;Google Search Central: Report Spam, Phishing, or Malware&lt;/a&gt;. Reporting mechanisms.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://urlhaus.abuse.ch/host/109.238.87.111/" rel="noopener noreferrer"&gt;URLhaus: host 109.238.87[.]111&lt;/a&gt;. History of other malware-associated URLs; this links to the analysis platform, not the suspicious server.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://blog.virustotal.com/2026/10/introducing-macos-mirage.html.html" rel="noopener noreferrer"&gt;VirusTotal: Introducing macOS Mirage, October 13, 2026&lt;/a&gt;. Cites the same IP as an exfiltration receiver in another case. It does not analyze this campaign's file.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://attack.mitre.org/techniques/T1566/002/" rel="noopener noreferrer"&gt;MITRE ATT&amp;amp;CK: T1566.002&lt;/a&gt;. Link-based phishing.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://attack.mitre.org/techniques/T1027/" rel="noopener noreferrer"&gt;MITRE ATT&amp;amp;CK: T1027&lt;/a&gt;. Obfuscation and encoding.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://attack.mitre.org/techniques/T1204/004/" rel="noopener noreferrer"&gt;MITRE ATT&amp;amp;CK: T1204.004&lt;/a&gt;. Malicious copy and paste.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://support.google.com/sites/answer/116262" rel="noopener noreferrer"&gt;Google Sites: Report abuse&lt;/a&gt;. Reporting procedure.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://feedback.smartscreen.microsoft.com/en-us/wdsi/support/report-unsafe-site" rel="noopener noreferrer"&gt;Microsoft Defender: Report unsafe site&lt;/a&gt;. Phishing and malware reports.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://urlhaus.abuse.ch/api/" rel="noopener noreferrer"&gt;URLhaus: policy and API&lt;/a&gt;. Submission criteria and authentication.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.fbi.gov/how-we-can-help-you/common-frauds-and-scams/spoofing-and-phishing" rel="noopener noreferrer"&gt;FBI: Spoofing and Phishing&lt;/a&gt;. Scam types and IC3 portal.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Editorial note:&lt;/strong&gt; All six screenshots come from the described investigation. The recipient's personal details were hidden in the original screenshot; for this article I also blurred and covered the email's access code. The sender is retained as an observable without attributing its identity to a particular person. The report's limitations remain intact and suspicious indicators appear without active links.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://fernandoperalta.xyz/blog/fake-wordpress-job-clickfix-attack/" rel="noopener noreferrer"&gt;https://fernandoperalta.xyz/blog/fake-wordpress-job-clickfix-attack/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>career</category>
      <category>cybersecurity</category>
      <category>hacker</category>
    </item>
    <item>
      <title>Cómo crear un plugin de WordPress: PHP, WooCommerce y Elementor</title>
      <dc:creator>Fernando Peralta</dc:creator>
      <pubDate>Tue, 13 Oct 2026 22:21:00 +0000</pubDate>
      <link>https://dev.to/fernandoperaltacarlos/como-crear-un-plugin-de-wordpress-php-woocommerce-y-elementor-efl</link>
      <guid>https://dev.to/fernandoperaltacarlos/como-crear-un-plugin-de-wordpress-php-woocommerce-y-elementor-efl</guid>
      <description>&lt;p&gt;&lt;em&gt;Publicado originalmente en &lt;a href="https://fernandoperalta.xyz/es/blog/crear-plugin-wordpress-woocommerce-elementor/" rel="noopener noreferrer"&gt;mi blog: Cómo crear un plugin de WordPress con PHP, WooCommerce y Elementor&lt;/a&gt;. Esta es la versión adaptada para DEV Community.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Mucha personalización de WordPress termina en &lt;code&gt;functions.php&lt;/code&gt;. Funciona hasta que cambia el tema y la funcionalidad desaparece con él. Todo lo que debe sobrevivir al tema, como una regla de envío, una regla de precios o un widget propio, pertenece a un &lt;strong&gt;plugin&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Esta guía construye un plugin pequeño como estructuro el trabajo de clientes: un archivo de entrada limpio, hooks en lugar de ediciones, seguridad por defecto, una regla de WooCommerce y un widget de Elementor. La parte de WooCommerce refleja el tipo de trabajo que hice en Industria Social para &lt;a href="https://fernandoperalta.xyz/es/casos-de-estudio/plugins-woocommerce-envios-bundles-personalizados/" rel="noopener noreferrer"&gt;GroovePro&lt;/a&gt;, donde las reglas de envío y los precios de bundles se mantuvieron en dos plugins PHP separados.&lt;/p&gt;

&lt;p&gt;Los ejemplos usan un plugin inventado llamado &lt;strong&gt;Acme Shipping Rules&lt;/strong&gt;. Cambia el prefijo (&lt;code&gt;acme_sr_&lt;/code&gt;) por el tuyo.&lt;/p&gt;

&lt;p&gt;Crea &lt;code&gt;wp-content/plugins/acme-shipping-rules/acme-shipping-rules.php&lt;/code&gt; como archivo principal y añade ahí los hooks y funciones de los pasos 2 a 5. El widget va en &lt;code&gt;widgets/class-acme-savings-widget.php&lt;/code&gt;; la limpieza va en &lt;code&gt;uninstall.php&lt;/code&gt;. Los bloques que continúan el archivo principal no necesitan otra apertura &lt;code&gt;&amp;lt;?php&lt;/code&gt;. La consulta SQL del paso 3 es un ejemplo independiente, no parte del plugin de envíos.&lt;/p&gt;

&lt;h2&gt;
  
  
  Paso 1: el archivo del plugin y su encabezado
&lt;/h2&gt;

&lt;p&gt;Un plugin es una carpeta en &lt;code&gt;wp-content/plugins/&lt;/code&gt; con un archivo PHP principal. Solo &lt;code&gt;Plugin Name&lt;/code&gt; es obligatorio en el encabezado, pero un plugin real debería declarar más, según los &lt;a href="https://developer.wordpress.org/plugins/plugin-basics/header-requirements/" rel="noopener noreferrer"&gt;requisitos del encabezado de plugins de WordPress&lt;/a&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;?php&lt;/span&gt;
&lt;span class="cd"&gt;/**
 * Plugin Name:       Acme Shipping Rules
 * Description:       Ajusta las tarifas de envío de WooCommerce según la cantidad por paquete.
 * Version:           1.0.0
 * Requires at least: 6.5
 * Requires PHP:      8.3
 * Author:            Fernando Peralta
 * License:           GPL v2 or later
 * Text Domain:       acme-shipping-rules
 * Requires Plugins:  woocommerce
 */&lt;/span&gt;

&lt;span class="c1"&gt;// Bloquea el acceso directo al archivo.&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt; &lt;span class="nb"&gt;defined&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="s1"&gt;'ABSPATH'&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;exit&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;Requires Plugins&lt;/code&gt; permite que WordPress se niegue a activar tu plugin si falta WooCommerce (WordPress 6.5 y posteriores). La guarda &lt;code&gt;ABSPATH&lt;/code&gt; evita que alguien cargue el archivo fuera de WordPress.&lt;/p&gt;

&lt;p&gt;Este ejemplo declara WordPress 6.5 como mínimo para usar &lt;code&gt;Requires Plugins&lt;/code&gt; y PHP 8.3 como base. La versión de WooCommerce instalada puede exigir una versión de WordPress superior; comprueba sus &lt;a href="https://woocommerce.com/document/server-requirements/" rel="noopener noreferrer"&gt;requisitos de entorno&lt;/a&gt;. Elementor es opcional: sin él, el plugin mantiene la regla de envío y no registra el widget.&lt;/p&gt;

&lt;p&gt;Dos hábitos que previenen la mayoría de las colisiones entre plugins:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Prefija todo&lt;/strong&gt;: funciones, opciones, hooks y nombres de clases (&lt;code&gt;acme_sr_&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Usa un text domain&lt;/strong&gt; y envuelve los textos en &lt;code&gt;__()&lt;/code&gt; o &lt;code&gt;esc_html__()&lt;/code&gt; desde el primer día, para que traducir después no sea una refactorización.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Paso 2: hooks, no ediciones
&lt;/h2&gt;

&lt;p&gt;WordPress es dirigido por eventos. Nunca editas el núcleo ni otro plugin: te enganchas a &lt;strong&gt;actions&lt;/strong&gt; (hacer algo en un momento) y &lt;strong&gt;filters&lt;/strong&gt; (cambiar un valor mientras pasa).&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Ejecuta algo cuando se activa el plugin.&lt;/span&gt;
&lt;span class="nf"&gt;register_activation_hook&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="k"&gt;__FILE__&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'acme_sr_activate'&lt;/span&gt; &lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;acme_sr_activate&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nf"&gt;add_option&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="s1"&gt;'acme_sr_threshold'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt; &lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;register_activation_hook()&lt;/code&gt; solo se dispara al activar, por lo que es el lugar correcto para crear opciones por defecto. Deja ahí cualquier preparación más pesada, como crear tablas, en lugar de hacerla en cada petición.&lt;/p&gt;

&lt;h2&gt;
  
  
  Paso 3: la seguridad no es opcional
&lt;/h2&gt;

&lt;p&gt;El manejador comprueba permisos, verifica el nonce y &lt;strong&gt;valida un entero mayor o igual a 1 en el servidor&lt;/strong&gt;. &lt;code&gt;min="1"&lt;/code&gt; ayuda en el navegador, pero no sustituye esta validación. Los arrays, campos ausentes, texto, decimales y valores menores que 1 se rechazan sin cambiar la opción:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nf"&gt;add_action&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="s1"&gt;'admin_post_acme_sr_save'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'acme_sr_save_settings'&lt;/span&gt; &lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;acme_sr_save_settings&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt; &lt;span class="nf"&gt;current_user_can&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="s1"&gt;'manage_woocommerce'&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nf"&gt;wp_die&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="nf"&gt;esc_html__&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="s1"&gt;'No tienes permiso.'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'acme-shipping-rules'&lt;/span&gt; &lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="mi"&gt;403&lt;/span&gt; &lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="c1"&gt;// Verifica el token contra CSRF; no sustituye los permisos.&lt;/span&gt;
    &lt;span class="nf"&gt;check_admin_referer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="s1"&gt;'acme_sr_save'&lt;/span&gt; &lt;span class="p"&gt;);&lt;/span&gt;

    &lt;span class="c1"&gt;// Valida el tipo y el rango antes de guardar.&lt;/span&gt;
    &lt;span class="nv"&gt;$raw&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;isset&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="nv"&gt;$_POST&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'threshold'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;is_string&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="nv"&gt;$_POST&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'threshold'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="nf"&gt;wp_unslash&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="nv"&gt;$_POST&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'threshold'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="nv"&gt;$threshold&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;filter_var&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="nv"&gt;$raw&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;FILTER_VALIDATE_INT&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="s1"&gt;'options'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt; &lt;span class="s1"&gt;'min_range'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="p"&gt;],&lt;/span&gt;
    &lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;);&lt;/span&gt;

    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="nv"&gt;$threshold&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nf"&gt;wp_die&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="nf"&gt;esc_html__&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="s1"&gt;'La cantidad mínima debe ser un entero mayor o igual a 1.'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'acme-shipping-rules'&lt;/span&gt; &lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="mi"&gt;400&lt;/span&gt; &lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="nf"&gt;update_option&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="s1"&gt;'acme_sr_threshold'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$threshold&lt;/span&gt; &lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="nf"&gt;wp_safe_redirect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="nf"&gt;admin_url&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="s1"&gt;'admin.php?page=acme-shipping-rules'&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="k"&gt;exit&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Registra una página en &lt;strong&gt;WooCommerce → Reglas de envío&lt;/strong&gt; mediante &lt;code&gt;admin_menu&lt;/code&gt; y &lt;code&gt;add_submenu_page()&lt;/code&gt;. Este bloque pertenece al archivo principal e incluye la función que muestra el formulario:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;add_action( 'admin_menu', 'acme_sr_register_settings_page' );

function acme_sr_register_settings_page() {
    add_submenu_page(
        'woocommerce',
        esc_html__( 'Reglas de envío', 'acme-shipping-rules' ),
        esc_html__( 'Reglas de envío', 'acme-shipping-rules' ),
        'manage_woocommerce',
        'acme-shipping-rules',
        'acme_sr_render_settings_page'
    );
}

function acme_sr_render_settings_page() {
    if ( ! current_user_can( 'manage_woocommerce' ) ) {
        wp_die( esc_html__( 'No tienes permiso.', 'acme-shipping-rules' ), 403 );
    }
    ?&amp;gt;
    &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"wrap"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;&lt;span class="cp"&gt;&amp;lt;?php esc_html_e( 'Reglas de envío', 'acme-shipping-rules' ); ?&amp;gt;&lt;/span&gt;&lt;span class="nt"&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;form&lt;/span&gt; &lt;span class="na"&gt;method=&lt;/span&gt;&lt;span class="s"&gt;"post"&lt;/span&gt; &lt;span class="na"&gt;action=&lt;/span&gt;&lt;span class="s"&gt;"&amp;lt;?php echo esc_url( admin_url( 'admin-post.php' ) ); ?&amp;gt;"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"hidden"&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"action"&lt;/span&gt; &lt;span class="na"&gt;value=&lt;/span&gt;&lt;span class="s"&gt;"acme_sr_save"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="cp"&gt;&amp;lt;?php wp_nonce_field( 'acme_sr_save' ); ?&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;label&lt;/span&gt; &lt;span class="na"&gt;for=&lt;/span&gt;&lt;span class="s"&gt;"threshold"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;&lt;span class="cp"&gt;&amp;lt;?php esc_html_e( 'Cantidad mínima por paquete', 'acme-shipping-rules' ); ?&amp;gt;&lt;/span&gt;&lt;span class="nt"&gt;&amp;lt;/label&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;"threshold"&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"threshold"&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"number"&lt;/span&gt; &lt;span class="na"&gt;min=&lt;/span&gt;&lt;span class="s"&gt;"1"&lt;/span&gt; &lt;span class="na"&gt;step=&lt;/span&gt;&lt;span class="s"&gt;"1"&lt;/span&gt; &lt;span class="na"&gt;required&lt;/span&gt;
                &lt;span class="na"&gt;value=&lt;/span&gt;&lt;span class="s"&gt;"&amp;lt;?php echo esc_attr( get_option( 'acme_sr_threshold', 3 ) ); ?&amp;gt;"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"submit"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;&lt;span class="cp"&gt;&amp;lt;?php esc_html_e( 'Guardar', 'acme-shipping-rules' ); ?&amp;gt;&lt;/span&gt;&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;/form&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
    &lt;span class="cp"&gt;&amp;lt;?php&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Notas que vale la pena recordar:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Un nonce ayuda a proteger contra CSRF; no demuestra por sí solo el origen de una petición ni concede permisos. Usa también &lt;code&gt;current_user_can()&lt;/code&gt;, como explica la &lt;a href="https://developer.wordpress.org/apis/security/nonces/" rel="noopener noreferrer"&gt;documentación de nonces de WordPress&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Escapa en el momento de la salida: &lt;code&gt;esc_html()&lt;/code&gt;, &lt;code&gt;esc_attr()&lt;/code&gt;, &lt;code&gt;esc_url()&lt;/code&gt;. Sanear al entrar no vuelve segura la salida.&lt;/li&gt;
&lt;li&gt;Cualquier SQL propio pasa por &lt;code&gt;$wpdb-&amp;gt;prepare()&lt;/code&gt;:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="k"&gt;global&lt;/span&gt; &lt;span class="nv"&gt;$wpdb&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nv"&gt;$table&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;$wpdb&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;prefix&lt;/span&gt; &lt;span class="mf"&gt;.&lt;/span&gt; &lt;span class="s1"&gt;'acme_sr_log'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nv"&gt;$rows&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;$wpdb&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;get_results&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="nv"&gt;$wpdb&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;prepare&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="s2"&gt;"SELECT * FROM &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="nv"&gt;$table&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s2"&gt; WHERE order_id = %d"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$order_id&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Paso 4: una regla de envío en WooCommerce
&lt;/h2&gt;

&lt;p&gt;El filtro &lt;code&gt;woocommerce_package_rates&lt;/code&gt; recibe las tarifas y &lt;strong&gt;un paquete de envío&lt;/strong&gt;. Este ejemplo descuenta 20 % del costo y sus impuestos cuando ese paquete contiene la cantidad mínima. Si el carrito se divide en varios paquetes, cada uno se evalúa por separado; no se suman todos los productos del carrito.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Incluye la regla en el hash del paquete para evitar tarifas antiguas.&lt;/span&gt;
&lt;span class="nf"&gt;add_filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="s1"&gt;'woocommerce_cart_shipping_packages'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'acme_sr_shipping_rule_cache_key'&lt;/span&gt; &lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;acme_sr_shipping_rule_cache_key&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="nv"&gt;$packages&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nv"&gt;$threshold&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;int&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="nf"&gt;get_option&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="s1"&gt;'acme_sr_threshold'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;);&lt;/span&gt;

    &lt;span class="k"&gt;foreach&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="nv"&gt;$packages&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="nv"&gt;$key&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nv"&gt;$package&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nv"&gt;$packages&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt; &lt;span class="nv"&gt;$key&lt;/span&gt; &lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="s1"&gt;'acme_sr_threshold'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;$threshold&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nv"&gt;$packages&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nf"&gt;add_filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="s1"&gt;'woocommerce_package_rates'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'acme_sr_adjust_rates'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;acme_sr_adjust_rates&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="nv"&gt;$rates&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$package&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nv"&gt;$quantity&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="k"&gt;foreach&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="nv"&gt;$package&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'contents'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="nv"&gt;$item&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nv"&gt;$quantity&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;int&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="nv"&gt;$item&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'quantity'&lt;/span&gt;&lt;span class="p"&gt;];&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="nv"&gt;$quantity&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="nb"&gt;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;int&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="nf"&gt;get_option&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="s1"&gt;'acme_sr_threshold'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nv"&gt;$rates&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;foreach&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="nv"&gt;$rates&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="nv"&gt;$rate&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="c1"&gt;// 20% de descuento si este paquete alcanza la cantidad mínima.&lt;/span&gt;
        &lt;span class="nv"&gt;$rate&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;set_cost&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;float&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="nv"&gt;$rate&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;get_cost&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mf"&gt;0.8&lt;/span&gt; &lt;span class="p"&gt;);&lt;/span&gt;

        &lt;span class="c1"&gt;// Ajusta los impuestos proporcionalmente al costo descontado.&lt;/span&gt;
        &lt;span class="nv"&gt;$taxes&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;array_map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
            &lt;span class="k"&gt;fn&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="nv"&gt;$tax&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nv"&gt;$tax&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mf"&gt;0.8&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="nv"&gt;$rate&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;get_taxes&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
        &lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="nv"&gt;$rate&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;set_taxes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="nv"&gt;$taxes&lt;/span&gt; &lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nv"&gt;$rates&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;$rate&lt;/code&gt; es un &lt;code&gt;WC_Shipping_Rate&lt;/code&gt;, que expone &lt;code&gt;get_cost()&lt;/code&gt; y &lt;code&gt;set_cost()&lt;/code&gt;, además de &lt;code&gt;get_taxes()&lt;/code&gt; y &lt;code&gt;set_taxes()&lt;/code&gt;. Dos advertencias prácticas:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;La caché debe reflejar la regla.&lt;/strong&gt; &lt;code&gt;acme_sr_shipping_rule_cache_key()&lt;/code&gt; añade la cantidad mínima a cada paquete antes de calcular las tarifas. Al guardar otra cantidad, cambia el hash y WooCommerce recalcula en la siguiente solicitud del cliente. El valor es estable: no invalida la caché en cada visita. El &lt;a href="https://woocommerce.github.io/code-reference/files/woocommerce-includes-class-wc-shipping.html" rel="noopener noreferrer"&gt;código de envíos de WooCommerce&lt;/a&gt; muestra cómo el paquete participa en el hash.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prueba con impuestos activados y desactivados&lt;/strong&gt;, con varias zonas de envío y con cupones que otorgan envío gratis.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Declara compatibilidad con HPOS
&lt;/h3&gt;

&lt;p&gt;El High-Performance Order Storage de WooCommerce cambia dónde viven los pedidos. Un plugin que no declara compatibilidad no aparece como compatible en los ajustes de funciones de WooCommerce, por lo que debes revisar su código antes de declarar compatibilidad desde el archivo principal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nf"&gt;add_action&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="s1"&gt;'before_woocommerce_init'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="nb"&gt;class_exists&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="nc"&gt;\Automattic\WooCommerce\Utilities\FeaturesUtil&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="n"&gt;class&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nc"&gt;\Automattic\WooCommerce\Utilities\FeaturesUtil&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;declare_compatibility&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
            &lt;span class="s1"&gt;'custom_order_tables'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="k"&gt;__FILE__&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="kc"&gt;true&lt;/span&gt;
        &lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Declararlo es una promesa: lee y escribe pedidos con los métodos CRUD de WooCommerce (&lt;code&gt;wc_get_order()&lt;/code&gt;, &lt;code&gt;$order-&amp;gt;get_meta()&lt;/code&gt;), no con consultas directas a &lt;code&gt;wp_postmeta&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Paso 5: un widget de Elementor
&lt;/h2&gt;

&lt;p&gt;En sitios construidos con Elementor, el cliente suele querer un bloque que pueda soltar en cualquier página. Un widget es una clase PHP que extiende &lt;code&gt;\Elementor\Widget_Base&lt;/code&gt;, siguiendo la &lt;a href="https://developers.elementor.com/docs/widgets/widget-structure" rel="noopener noreferrer"&gt;estructura de widgets de Elementor&lt;/a&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;?php&lt;/span&gt;
&lt;span class="c1"&gt;// widgets/class-acme-savings-widget.php&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt; &lt;span class="nb"&gt;defined&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="s1"&gt;'ABSPATH'&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;exit&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Acme_Savings_Widget&lt;/span&gt; &lt;span class="kd"&gt;extends&lt;/span&gt; &lt;span class="nc"&gt;\Elementor\Widget_Base&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;

    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;get_name&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s1"&gt;'acme_savings'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;get_title&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;esc_html__&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="s1"&gt;'Ahorro en envío'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'acme-shipping-rules'&lt;/span&gt; &lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;get_icon&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s1"&gt;'eicon-code'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;get_categories&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt; &lt;span class="kt"&gt;array&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt; &lt;span class="s1"&gt;'general'&lt;/span&gt; &lt;span class="p"&gt;];&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;protected&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;register_controls&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt; &lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nv"&gt;$this&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;start_controls_section&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="s1"&gt;'content_section'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
            &lt;span class="s1"&gt;'label'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;esc_html__&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="s1"&gt;'Contenido'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'acme-shipping-rules'&lt;/span&gt; &lt;span class="p"&gt;),&lt;/span&gt;
            &lt;span class="s1"&gt;'tab'&lt;/span&gt;   &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;\Elementor\Controls_Manager&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="no"&gt;TAB_CONTENT&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;);&lt;/span&gt;

        &lt;span class="nv"&gt;$this&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;add_control&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="s1"&gt;'message'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
            &lt;span class="s1"&gt;'label'&lt;/span&gt;   &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;esc_html__&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="s1"&gt;'Mensaje'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'acme-shipping-rules'&lt;/span&gt; &lt;span class="p"&gt;),&lt;/span&gt;
            &lt;span class="s1"&gt;'type'&lt;/span&gt;    &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;\Elementor\Controls_Manager&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="no"&gt;TEXT&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="s1"&gt;'default'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;esc_html__&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="s1"&gt;'El descuento de envío se calcula por paquete.'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'acme-shipping-rules'&lt;/span&gt; &lt;span class="p"&gt;),&lt;/span&gt;
        &lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;);&lt;/span&gt;

        &lt;span class="nv"&gt;$this&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;end_controls_section&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;protected&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;render&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt; &lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nv"&gt;$settings&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;$this&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;get_settings_for_display&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
        &lt;span class="k"&gt;echo&lt;/span&gt; &lt;span class="s1"&gt;'&amp;lt;p class="acme-savings"&amp;gt;'&lt;/span&gt; &lt;span class="mf"&gt;.&lt;/span&gt; &lt;span class="nf"&gt;esc_html&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="nv"&gt;$settings&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'message'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="mf"&gt;.&lt;/span&gt; &lt;span class="s1"&gt;'&amp;lt;/p&amp;gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Regístralo desde el archivo principal del plugin. El archivo de la clase se incluye &lt;strong&gt;dentro&lt;/strong&gt; del hook, porque las clases de Elementor no existen hasta que Elementor se cargó:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nf"&gt;add_action&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="s1"&gt;'elementor/widgets/register'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="nv"&gt;$widgets_manager&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;require_once&lt;/span&gt; &lt;span class="k"&gt;__DIR__&lt;/span&gt; &lt;span class="mf"&gt;.&lt;/span&gt; &lt;span class="s1"&gt;'/widgets/class-acme-savings-widget.php'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nv"&gt;$widgets_manager&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;register&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;\Acme_Savings_Widget&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;El widget ya aparece en el panel de Elementor, su control &lt;code&gt;message&lt;/code&gt; es editable por el cliente y la salida está escapada.&lt;/p&gt;

&lt;p&gt;El widget es informativo: su mensaje se edita en Elementor y no determina la elegibilidad para el descuento. La regla se aplica al calcular el envío para cada paquete.&lt;/p&gt;

&lt;h2&gt;
  
  
  Paso 6: rendimiento y mantenimiento
&lt;/h2&gt;

&lt;p&gt;Un plugin se ejecuta en cada petición, así que cuida lo que cargas:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Carga assets solo donde se necesitan.&lt;/strong&gt; Encola scripts y estilos dentro de &lt;code&gt;wp_enqueue_scripts&lt;/code&gt; y protégelos con condicionales como &lt;code&gt;is_cart()&lt;/code&gt; o &lt;code&gt;is_checkout()&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No consultes en cada página.&lt;/strong&gt; Guarda en caché los resultados costosos con transients e invalídalos cuando los datos cambien.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Limpia al desinstalar.&lt;/strong&gt; Elimina solo datos propiedad del plugin; no borres pedidos ni datos de otros plugins.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Versiona tus assets&lt;/strong&gt; con la versión del plugin para que los navegadores no sirvan archivos viejos después de un lanzamiento.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Para este ejemplo, &lt;code&gt;uninstall.php&lt;/code&gt; elimina únicamente la opción del plugin al desinstalarlo. Usa &lt;code&gt;WP_UNINSTALL_PLUGIN&lt;/code&gt; como guarda en ese archivo; la desactivación no debe borrar la configuración:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;?php&lt;/span&gt;
&lt;span class="c1"&gt;// uninstall.php&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt; &lt;span class="nb"&gt;defined&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="s1"&gt;'WP_UNINSTALL_PLUGIN'&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;exit&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nf"&gt;delete_option&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="s1"&gt;'acme_sr_threshold'&lt;/span&gt; &lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Antes de entregar, pasa el código por los &lt;a href="https://github.com/WordPress/WordPress-Coding-Standards" rel="noopener noreferrer"&gt;WordPress Coding Standards&lt;/a&gt; con PHP_CodeSniffer y por el plugin oficial Plugin Check, que señala problemas de seguridad y compatibilidad.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lista previa al lanzamiento
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Encabezado completo, guarda &lt;code&gt;ABSPATH&lt;/code&gt; en el principal y el widget, y &lt;code&gt;WP_UNINSTALL_PLUGIN&lt;/code&gt; en &lt;code&gt;uninstall.php&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Todas las funciones, opciones y clases con prefijo.&lt;/li&gt;
&lt;li&gt;Permisos, nonce y validación del entero mínimo en el servidor; salida escapada en el formulario y el widget.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;$wpdb-&amp;gt;prepare()&lt;/code&gt; en cualquier SQL con variables.&lt;/li&gt;
&lt;li&gt;HPOS declarado y pedidos leídos con las APIs de WooCommerce.&lt;/li&gt;
&lt;li&gt;Assets encolados solo donde se necesitan.&lt;/li&gt;
&lt;li&gt;Pruebas con cantidades bajo/en/sobre el mínimo, varios paquetes, impuestos, zonas, envío gratis y cambio de mínimo en una sesión con tarifas en caché.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;uninstall.php&lt;/code&gt; y changelog listos.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Cuándo construir en lugar de comprar
&lt;/h2&gt;

&lt;p&gt;Un plugin ya hecho es la decisión correcta cuando hace exactamente lo que necesitas y tiene mantenimiento activo. Un plugin a medida se justifica cuando la regla es específica de tu negocio, como una fórmula de envío o un precio por bundle, o cuando de otro modo apilarías tres plugins para aproximarla.&lt;/p&gt;

&lt;p&gt;Este es el trabajo que hago como &lt;a href="https://fernandoperalta.xyz/es/desarrollador-wordpress/" rel="noopener noreferrer"&gt;desarrollador WordPress en CDMX&lt;/a&gt;. Puedes ver proyectos relacionados en los &lt;a href="https://fernandoperalta.xyz/es/casos-de-estudio/" rel="noopener noreferrer"&gt;casos de estudio&lt;/a&gt;, como el &lt;a href="https://fernandoperalta.xyz/es/casos-de-estudio/desarrollo-sitio-web-bilingue-wordpress-elementor/" rel="noopener noreferrer"&gt;sitio bilingüe en WordPress y Elementor para Mezcal Viviente&lt;/a&gt;. Si necesitas un plugin a medida, &lt;a href="mailto:hola@fernandoperalta.xyz"&gt;escríbeme&lt;/a&gt; con la regla que quieres automatizar.&lt;/p&gt;

&lt;h3&gt;
  
  
  Recurso adicional: desplegar WordPress en Azure
&lt;/h3&gt;

&lt;p&gt;Si además de desarrollar plugins quieres explorar opciones de despliegue, Microsoft ofrece documentación para alojar WordPress mediante Azure App Service y Azure Database for MySQL.&lt;/p&gt;

&lt;p&gt;Puedes consultar la &lt;a href="https://learn.microsoft.com/azure/app-service/quickstart-wordpress?wt.mc_id=studentamb_641347" rel="noopener noreferrer"&gt;guía oficial para implementar WordPress en Azure&lt;/a&gt;, que explica cómo configurar y administrar una instalación de WordPress en la nube.&lt;/p&gt;




&lt;h3&gt;
  
  
  Sobre mí
&lt;/h3&gt;

&lt;p&gt;Soy Fernando Peralta, desarrollador web especializado en proyectos WordPress, WooCommerce y desarrollo a medida. Comparto artículos técnicos y proyectos en &lt;a href="https://fernandoperalta.xyz/es/" rel="noopener noreferrer"&gt;mi sitio web&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;También trabajo en &lt;a href="https://devstoremx.xyz/" rel="noopener noreferrer"&gt;Devstoremx&lt;/a&gt;, mi agencia de desarrollo web en México, donde desarrollamos sitios web, tiendas en línea, aplicaciones e integraciones a medida.&lt;/p&gt;

&lt;p&gt;Puedes consultar &lt;a href="https://fernandoperalta.xyz/es/blog/crear-plugin-wordpress-woocommerce-elementor/" rel="noopener noreferrer"&gt;la guía original en mi blog&lt;/a&gt; y explorar otros casos reales de desarrollo WordPress.&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>woocommerce</category>
      <category>elementor</category>
      <category>php</category>
    </item>
    <item>
      <title>How I freed more than 12GB in my Hotmail account with Jev (and skipped yet another subscription)</title>
      <dc:creator>Fernando Peralta</dc:creator>
      <pubDate>Tue, 13 Oct 2026 21:23:00 +0000</pubDate>
      <link>https://dev.to/fernandoperaltacarlos/how-i-freed-more-than-12gb-in-my-hotmail-account-with-jev-and-skipped-yet-another-subscription-1d17</link>
      <guid>https://dev.to/fernandoperaltacarlos/how-i-freed-more-than-12gb-in-my-hotmail-account-with-jev-and-skipped-yet-another-subscription-1d17</guid>
      <description>&lt;p&gt;&lt;em&gt;This article was originally published on &lt;a href="https://fernandoperalta.xyz/blog/como-libere-12gb-hotmail-jev/" rel="noopener noreferrer"&gt;my personal development blog: How I freed more than 12GB in my Hotmail account with Jev&lt;/a&gt;. This is the adapted version for DEV Community.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;In an era of endless subscriptions — streaming, cloud storage, productivity tools — hitting a storage limit often means yet another monthly fee. I had that problem with my Hotmail account: it was out of storage and held about &lt;strong&gt;70,000 emails&lt;/strong&gt;. Some were promotions, newsletters, automated notices, and messages that no longer mattered. Others were receipts, login details, and conversations I still needed. Deleting everything by sender or by age was too risky. Reading every message by hand would never end. Instead of paying for more storage, I decided to reclaim space.&lt;/p&gt;

&lt;p&gt;That is why I built &lt;strong&gt;Mail Organizer&lt;/strong&gt;: a local app for deciding which emails I could delete, reviewing the uncertain cases, and running the deletion from Outlook. What turned a blind cleanup into a useful review was &lt;strong&gt;&lt;a href="https://docs.typesafe.ai/introduction" rel="noopener noreferrer"&gt;Jev&lt;/a&gt;&lt;/strong&gt;, the System One model from &lt;a href="https://typesafe.ai/" rel="noopener noreferrer"&gt;TypeSafe&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://fernandoperalta.xyz/blog/como-libere-12gb-hotmail-jev/" rel="noopener noreferrer"&gt;View the original results illustration: 62,025 emails deleted and 8,058 messages remaining&lt;/a&gt;.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;The goal was not for an AI to empty my inbox.&lt;/strong&gt; It was to turn thousands of repetitive decisions into a list I could understand and approve.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The stack I chose
&lt;/h2&gt;

&lt;p&gt;I wanted the app to run on my computer and for secrets never to reach the browser. I chose a single &lt;strong&gt;Next.js 15&lt;/strong&gt; project with &lt;strong&gt;React 19&lt;/strong&gt;, &lt;strong&gt;TypeScript&lt;/strong&gt;, and &lt;strong&gt;Tailwind CSS&lt;/strong&gt; for the interface; its API routes run the server logic. That let me build the review panel and the cleanup jobs in the same application, without deploying a separate service.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Piece&lt;/th&gt;
&lt;th&gt;Technology&lt;/th&gt;
&lt;th&gt;Its job in the project&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Interface and server&lt;/td&gt;
&lt;td&gt;Next.js App Router, React, TypeScript, and Tailwind&lt;/td&gt;
&lt;td&gt;Show the guided flow and run the API routes in Node.js.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Mail access&lt;/td&gt;
&lt;td&gt;Microsoft Graph and &lt;code&gt;@azure/msal-node&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Sign in, query messages, and request deletion in Outlook.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AI judgments&lt;/td&gt;
&lt;td&gt;Jev through &lt;code&gt;@typesafe-ai/sdk&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Evaluate each email and return structured probabilities.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Persistence&lt;/td&gt;
&lt;td&gt;SQLite with &lt;code&gt;better-sqlite3&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Store metadata, judgments, in-progress jobs, and the deletion history.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The important split is inside that one process: the browser displays data and collects my decisions; the API routes hold the Microsoft session and the TypeSafe key, call external services, and write to SQLite. Secrets live in &lt;code&gt;.env.local&lt;/code&gt; and are read only on the server.&lt;/p&gt;

&lt;p&gt;I also orchestrated agents in &lt;strong&gt;Cursor&lt;/strong&gt; and &lt;strong&gt;OpenCode&lt;/strong&gt; with the models &lt;strong&gt;GPT-6 Astra&lt;/strong&gt;, &lt;strong&gt;GPT-6 Sol&lt;/strong&gt;, &lt;strong&gt;Opus 5.5&lt;/strong&gt;, &lt;strong&gt;Grok 4.7&lt;/strong&gt;, and &lt;strong&gt;Muse Spark 1.3&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  From a full inbox to a list I could review
&lt;/h2&gt;

&lt;p&gt;I split the work into date ranges. The app connects to Outlook through Microsoft Graph and stores in a local SQLite database only what it needs to classify a message: sender, subject, a short preview, date, folder, and a few signals such as whether the email has attachments. It does not download or store the full body or the attachments. When I want to read a message, the app asks Outlook for the body at that moment.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;React panel:&lt;/strong&gt; sends actions to the Next.js API routes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;API routes:&lt;/strong&gt; use MSAL and the local session to talk to Microsoft Graph.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Microsoft Graph:&lt;/strong&gt; returns date-range metadata; the API stores it in SQLite.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SQLite → Jev:&lt;/strong&gt; each query sends one email; Jev returns typed judgments that go back into the database.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Protection policy:&lt;/strong&gt; filters the lists I see in the panel. On confirmation, the API asks Graph for a permanent delete.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Saving those judgments in SQLite mattered. I could stop and resume without classifying the same messages twice. I could also change the decision thresholds and rebuild the lists without asking Jev again.&lt;/p&gt;

&lt;h3&gt;
  
  
  Authentication and sync
&lt;/h3&gt;

&lt;p&gt;For a personal Hotmail account I used &lt;strong&gt;OAuth with MSAL&lt;/strong&gt;, a public client, and the &lt;strong&gt;Authorization Code + PKCE&lt;/strong&gt; flow. The app requests delegated mail permissions, checks that the connected account is the one I configured, and keeps the session on the server. It never asks for my password and never uses a &lt;em&gt;client secret&lt;/em&gt; in the browser. That logic lives in &lt;code&gt;auth.ts&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Every sync requires dates. Internally I convert the inclusive dates from the UI into a &lt;code&gt;[from, to)&lt;/code&gt; interval and query Microsoft Graph page by page. I store a cursor and progress in SQLite so I can continue if a session stops. When I sync again, I update the metadata without erasing the fact that Jev already classified a message. That sits in &lt;code&gt;sync.ts&lt;/code&gt; and &lt;code&gt;messages.ts&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;SQLite has another job: Outlook does not know my &lt;code&gt;junk_probability&lt;/code&gt; field, so I could not filter or group emails by that value directly in Graph. In the local database I separated &lt;code&gt;messages&lt;/code&gt; (metadata), &lt;code&gt;judgments&lt;/code&gt; (Jev answers), &lt;code&gt;scores&lt;/code&gt; (policy result), &lt;code&gt;jobs&lt;/code&gt; (progress), and &lt;code&gt;deletion_log&lt;/code&gt; (audit). If I change a threshold, I recompute &lt;code&gt;scores&lt;/code&gt; from &lt;code&gt;judgments&lt;/code&gt; without paying for another classification.&lt;/p&gt;

&lt;h3&gt;
  
  
  Long-running jobs and a UI that explains progress
&lt;/h3&gt;

&lt;p&gt;Syncing, classifying, and deleting thousands of emails takes longer than a normal web request. The API routes start &lt;strong&gt;background jobs inside the local process&lt;/strong&gt; and return control to the panel. &lt;code&gt;jobs&lt;/code&gt; stores the range, cursor, and counters; each classified email is persisted as soon as it finishes. If the server restarts, the app recognizes the interrupted job and I can continue without starting over.&lt;/p&gt;

&lt;p&gt;I organized the interface into five steps — connect, choose dates, sync, classify, and review — and added an activity log for pages received, errors, and retries. That solved a design problem as important as the classification itself: during a long operation I needed to know whether the system was advancing, waiting on a quota, or waiting for me.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I asked Jev
&lt;/h2&gt;

&lt;p&gt;A rule like “if it says &lt;em&gt;newsletter&lt;/em&gt;, delete it” cannot tell useless advertising from an email I still need. Jev therefore scores &lt;strong&gt;each message on its own&lt;/strong&gt;, with ten structured questions. The main one is, in essence: &lt;em&gt;“Could I permanently delete this email without losing anything I still need?”&lt;/em&gt; The answer is a &lt;strong&gt;Noul&lt;/strong&gt;, TypeSafe’s &lt;a href="https://docs.typesafe.ai/primitives" rel="noopener noreferrer"&gt;yes-or-no question&lt;/a&gt;, which returns a probability between 0 and 1. That probability feeds the list of disposable messages.&lt;/p&gt;

&lt;p&gt;This fragment from the classifier (&lt;code&gt;classify.ts&lt;/code&gt;) shows the core idea: I send one email’s context together with the ten questions and read a typed response, instead of parsing free text.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;typeSafe&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;systemOne&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="na"&gt;state&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;stateFor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;message&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;folders&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;evaluatedAt&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
  &lt;span class="na"&gt;model&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;jev-latest&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;questions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;MAIL_QUESTIONS&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;probability&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;answers&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;is_disposable&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;noul&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The other questions add context and protection: whether it looks like marketing or an automated notice, whether a person is waiting for a reply, whether it contains credentials, whether it is a financial or legal record, and whether its usefulness has already expired. For time-sensitive cases, Jev receives both the email date and the evaluation date. A temporary code from years ago and an invoice from the same day should not be treated the same way.&lt;/p&gt;

&lt;p&gt;The app makes &lt;strong&gt;one Jev request per email&lt;/strong&gt;, but includes all ten questions in that same request. Nine are Noul questions and the tenth scores how painful it would be to lose the message on a five-level scale. I capped classification at 15 concurrent requests and 900 starts per minute; transient errors retry, and messages that keep failing stay marked so I can process them again. Patterns like &lt;code&gt;no-reply&lt;/code&gt; only move a message earlier in the queue: they never declare it junk on their own.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Judgment&lt;/th&gt;
&lt;th&gt;What I did with it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;75% or higher&lt;/strong&gt; chance it was disposable&lt;/td&gt;
&lt;td&gt;It showed up as &lt;strong&gt;deletable&lt;/strong&gt;, ready for my review.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;40% up to, but not including, 75%&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;It went to &lt;strong&gt;review&lt;/strong&gt;: the decision needed more context.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Under 40%&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;It stayed in &lt;strong&gt;keep&lt;/strong&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That percentage is the model’s judgment, not a guarantee that deletion is safe. I added separate brakes: an email with strong signs of credentials, financial or legal documents, or a personal conversation moves to &lt;strong&gt;keep&lt;/strong&gt; even if Jev calls it disposable. I can also protect senders with an allowlist. Before deleting a large batch, the app can label a sample of up to one hundred emails and compare my decisions with Jev’s, so I can catch false positives.&lt;/p&gt;

&lt;p&gt;In code, the policy (&lt;code&gt;policy.ts&lt;/code&gt;) looks roughly like this (shortened):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;probability&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;judgment&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;is_disposable&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;protectedMail&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
  &lt;span class="nx"&gt;judgment&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;contains_access_credentials&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mf"&gt;0.60&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt;
  &lt;span class="nx"&gt;judgment&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;contains_financial_or_legal&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mf"&gt;0.60&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt;
  &lt;span class="nx"&gt;judgment&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;is_addressed_personally&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mf"&gt;0.70&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt;
  &lt;span class="nx"&gt;senderRule&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;always_keep&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;bucket&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;protectedMail&lt;/span&gt; &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;keep&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
  &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;probability&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.75&lt;/span&gt; &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;deletable&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
  &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;probability&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.40&lt;/span&gt; &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;review&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
  &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;keep&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That split was deliberate: Jev provides the judgments; a deterministic function applies my thresholds and protections. I can change the policy without changing the model answers, and I can explain why each email landed in each list.&lt;/p&gt;

&lt;h2&gt;
  
  
  The step that actually freed space
&lt;/h2&gt;

&lt;p&gt;Classification does not recover storage by itself. I inspected the lists first, grouped emails by sender, and reviewed the uncertain messages. To delete, the app shows the protection blocks and requires me to type the exact number of selected emails. Only then does it send Microsoft Graph a &lt;strong&gt;permanent delete&lt;/strong&gt;. Moving messages to &lt;em&gt;Deleted Items&lt;/em&gt; was not enough for the quota problem.&lt;/p&gt;

&lt;p&gt;If you want to build something similar, the key operation is &lt;code&gt;permanentDelete&lt;/code&gt;: Microsoft Graph exposes it through &lt;code&gt;POST /me/messages/{id}/permanentDelete&lt;/code&gt; and, for a personal account, requires the delegated &lt;code&gt;Mail.ReadWrite&lt;/code&gt; permission. The documentation explains that the message moves to the &lt;em&gt;Purges&lt;/em&gt; folder under &lt;em&gt;Recoverable Items&lt;/em&gt;. That does not mean it is physically erased immediately: retention policies may still apply.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Official Microsoft Graph documentation:&lt;/strong&gt; check the permissions, endpoint, and what happens in the Purges folder in the &lt;a href="https://learn.microsoft.com/graph/api/message-permanentdelete?view=graph-rest-1.0&amp;amp;wt.mc_id=studentamb_641347" rel="noopener noreferrer"&gt;Microsoft Learn permanentDelete guide&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Before calling Graph I write a &lt;code&gt;pending&lt;/code&gt; row for each message in &lt;code&gt;deletion_log&lt;/code&gt;. Then I send &lt;code&gt;permanentDelete&lt;/code&gt; in batches of up to 20 operations, using immutable identifiers so a folder move does not change the reference to the email. Only a successful response marks the record as &lt;code&gt;deleted&lt;/code&gt;; a &lt;code&gt;404&lt;/code&gt; or an uncertain response keeps the case for review or retry. That flow lives in &lt;code&gt;deletion.ts&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Another limit showed up during the bulk cleanup: Microsoft throttles requests. Deletion slowed down once I hit that quota. I added a preventive budget of 9,000 operations per ten minutes and a shared wait when Microsoft responds with &lt;code&gt;Retry-After&lt;/code&gt;. The process retries only the items that failed, without repeating deletions already confirmed. The panel shows when it is waiting on the quota, and the log keeps each email’s result; a network error is not reported as a successful delete.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Recorded result:&lt;/strong&gt; on September 22, 2026, the local history marked &lt;strong&gt;62,025 distinct emails as deleted&lt;/strong&gt; and &lt;strong&gt;zero pending or failed&lt;/strong&gt;. The local database still held &lt;strong&gt;8,058 messages&lt;/strong&gt;. Jev used &lt;strong&gt;100,737,845 tokens&lt;/strong&gt;, at a cost of &lt;strong&gt;$3.6393&lt;/strong&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;What started as an inbox I could not sort became a manageable flow: limit the dates, ask Jev for clear judgments, protect what matters, review, and confirm the deletion. Jev saved me the repetitive classification. The rules and the human review kept the final decision in my hands.&lt;/p&gt;

&lt;h3&gt;
  
  
  Further reading
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://docs.typesafe.ai/introduction" rel="noopener noreferrer"&gt;What Jev is and how it works&lt;/a&gt;, in the official TypeSafe docs.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://docs.typesafe.ai/primitives" rel="noopener noreferrer"&gt;Noul, Score, and Choice&lt;/a&gt;, the structured answers I used to build the classification.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://api.typesafe.ai/docs" rel="noopener noreferrer"&gt;System One API reference&lt;/a&gt;, for the query contract.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://learn.microsoft.com/graph/api/message-permanentdelete?view=graph-rest-1.0&amp;amp;wt.mc_id=studentamb_641347" rel="noopener noreferrer"&gt;Permanently deleting messages (Microsoft Graph)&lt;/a&gt;, official guide with the permissions and the Purges folder.&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  About me
&lt;/h3&gt;

&lt;p&gt;I'm Fernando Peralta, a web developer working on software development, web applications, and technology projects.&lt;/p&gt;

&lt;p&gt;I'm also involved in &lt;a href="https://devstoremx.xyz/" rel="noopener noreferrer"&gt;Devstoremx&lt;/a&gt;, my &lt;strong&gt;web development agency in Mexico&lt;/strong&gt;, where we work on websites, custom applications, e-commerce solutions, integrations, and automation.&lt;/p&gt;

&lt;p&gt;I share personal projects, technical experiences, and development articles on &lt;a href="https://fernandoperalta.xyz/" rel="noopener noreferrer"&gt;my personal website and software development blog&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If you'd like to explore this project with its original design and illustrations, you can &lt;a href="https://fernandoperalta.xyz/blog/como-libere-12gb-hotmail-jev/" rel="noopener noreferrer"&gt;read the complete article on my blog&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>nextjs</category>
      <category>ai</category>
      <category>sqlite</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Cómo liberé más de 12GB de espacio en mi cuenta de Hotmail con Jev (Ahorrándome una suscripción más)</title>
      <dc:creator>Fernando Peralta</dc:creator>
      <pubDate>Tue, 13 Oct 2026 20:56:00 +0000</pubDate>
      <link>https://dev.to/fernandoperaltacarlos/como-libere-mas-de-12gb-de-espacio-en-mi-cuenta-de-hotmail-con-jev-ahorrandome-una-suscripcion-mas-c12</link>
      <guid>https://dev.to/fernandoperaltacarlos/como-libere-mas-de-12gb-de-espacio-en-mi-cuenta-de-hotmail-con-jev-ahorrandome-una-suscripcion-mas-c12</guid>
      <description>&lt;p&gt;&lt;em&gt;Este artículo se publicó originalmente en &lt;a href="https://fernandoperalta.xyz/es/blog/como-libere-12gb-hotmail-jev/" rel="noopener noreferrer"&gt;mi blog de desarrollo web: cómo liberé más de 12 GB de Hotmail con Jev&lt;/a&gt;. Esta es su versión adaptada para DEV Community.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;En una época en la que acumulamos miles de suscripciones —streaming, almacenamiento en la nube, herramientas de productividad— casi cualquier límite de espacio termina convirtiéndose en otra cuota mensual. Yo tuve este problema con mi cuenta de Hotmail: estaba al límite de almacenamiento y acumulaba alrededor de &lt;strong&gt;70 mil correos&lt;/strong&gt;. Entre ellos había promociones, boletines, avisos automáticos y mensajes que ya habían perdido su utilidad. También había recibos, accesos y conversaciones que sí necesitaba conservar. Borrar todo por remitente o por antigüedad era demasiado arriesgado; revisar cada mensaje a mano, interminable. En lugar de pagar más almacenamiento, decidí recuperar espacio.&lt;/p&gt;

&lt;p&gt;Así nació &lt;strong&gt;Mail Organizer&lt;/strong&gt;: una aplicación local para decidir qué correos podía eliminar, revisar los casos dudosos y ejecutar el borrado desde Outlook. La pieza que me permitió pasar de una limpieza a ciegas a una revisión útil fue &lt;strong&gt;&lt;a href="https://docs.typesafe.ai/introduction" rel="noopener noreferrer"&gt;Jev&lt;/a&gt;&lt;/strong&gt;, el modelo System One de &lt;a href="https://typesafe.ai/" rel="noopener noreferrer"&gt;TypeSafe&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://fernandoperalta.xyz/es/blog/como-libere-12gb-hotmail-jev/" rel="noopener noreferrer"&gt;Ver la ilustración original del resultado: 62 025 correos borrados y 8 058 mensajes restantes&lt;/a&gt;.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;El objetivo no era que una IA vaciara mi buzón.&lt;/strong&gt; Era reducir miles de decisiones repetitivas a una lista que yo pudiera entender y aprobar.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Las tecnologías que elegí
&lt;/h2&gt;

&lt;p&gt;Quería que la aplicación corriera en mi computadora y que las claves nunca llegaran al navegador. Elegí un solo proyecto &lt;strong&gt;Next.js 15&lt;/strong&gt; con &lt;strong&gt;React 19&lt;/strong&gt;, &lt;strong&gt;TypeScript&lt;/strong&gt; y &lt;strong&gt;Tailwind CSS&lt;/strong&gt; para la interfaz; sus rutas API ejecutan la lógica del servidor. Así podía construir el panel de revisión y los procesos de limpieza en la misma aplicación, sin desplegar un servicio adicional.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Pieza&lt;/th&gt;
&lt;th&gt;Tecnología&lt;/th&gt;
&lt;th&gt;Su trabajo en el proyecto&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Interfaz y servidor&lt;/td&gt;
&lt;td&gt;Next.js App Router, React, TypeScript y Tailwind&lt;/td&gt;
&lt;td&gt;Mostrar el flujo guiado y ejecutar las rutas API en Node.js.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Acceso al correo&lt;/td&gt;
&lt;td&gt;Microsoft Graph y &lt;code&gt;@azure/msal-node&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Iniciar sesión, consultar mensajes y solicitar el borrado en Outlook.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Juicios de IA&lt;/td&gt;
&lt;td&gt;Jev mediante &lt;code&gt;@typesafe-ai/sdk&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Evaluar cada correo y devolver probabilidades estructuradas.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Persistencia&lt;/td&gt;
&lt;td&gt;SQLite con &lt;code&gt;better-sqlite3&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Guardar metadatos, juicios, trabajos en curso y el historial de borrados.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;La separación importante está dentro de ese único proceso: el navegador muestra datos y recoge mis decisiones; las rutas API guardan la sesión de Microsoft y la clave de TypeSafe, consultan los servicios externos y escriben en SQLite. Los secretos viven en &lt;code&gt;.env.local&lt;/code&gt; y solo se leen del lado del servidor.&lt;/p&gt;

&lt;p&gt;También orquesté agentes en &lt;strong&gt;Cursor&lt;/strong&gt; y &lt;strong&gt;OpenCode&lt;/strong&gt; con los modelos &lt;strong&gt;GPT-6 Astra&lt;/strong&gt;, &lt;strong&gt;GPT-6 Sol&lt;/strong&gt;, &lt;strong&gt;Opus 5.5&lt;/strong&gt;, &lt;strong&gt;Grok 4.7&lt;/strong&gt; y &lt;strong&gt;Muse Spark 1.3&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Del buzón saturado a una lista revisable
&lt;/h2&gt;

&lt;p&gt;Dividí el trabajo por rangos de fechas. La aplicación se conecta a Outlook mediante Microsoft Graph y trae a una base SQLite local solo los datos necesarios para clasificar: remitente, asunto, una vista previa breve, fecha, carpeta y algunas señales como si el correo tiene adjuntos. No descarga ni guarda el cuerpo completo o los adjuntos. Si quiero leer un mensaje, la aplicación pide su cuerpo a Outlook en ese momento.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Panel React:&lt;/strong&gt; envía acciones a las rutas API de Next.js.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rutas API:&lt;/strong&gt; usan MSAL y la sesión local para hablar con Microsoft Graph.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Microsoft Graph:&lt;/strong&gt; devuelve metadatos por rango; la API los guarda en SQLite.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SQLite → Jev:&lt;/strong&gt; cada consulta envía un correo; Jev responde con juicios tipados que vuelven a la base.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Política de protección:&lt;/strong&gt; filtra las listas que veo en el panel. Al confirmar, la API pide el borrado permanente a Graph.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Guardar los juicios en SQLite fue importante. Pude detener y retomar el proceso sin clasificar dos veces los mismos mensajes. También pude ajustar los umbrales de decisión y recalcular las listas sin volver a consultar a Jev.&lt;/p&gt;

&lt;h3&gt;
  
  
  Autenticación y sincronización
&lt;/h3&gt;

&lt;p&gt;Para una cuenta personal de Hotmail usé &lt;strong&gt;OAuth con MSAL&lt;/strong&gt;, un cliente público y el flujo &lt;strong&gt;Authorization Code + PKCE&lt;/strong&gt;. La aplicación solicita permisos delegados de correo, comprueba que la cuenta conectada sea la que configuré y mantiene la sesión del lado del servidor. No pide mi contraseña ni usa un &lt;em&gt;client secret&lt;/em&gt; en el navegador. Esa lógica vive en &lt;code&gt;auth.ts&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Cada sincronización tiene fechas obligatorias. Internamente convierto las fechas inclusivas de la interfaz en un intervalo &lt;code&gt;[desde, hasta)&lt;/code&gt; y consulto Microsoft Graph página por página. Guardo un cursor y el progreso en SQLite para continuar si una sesión se interrumpe. Al volver a sincronizar, actualizo los metadatos sin borrar el hecho de que Jev ya clasificó un mensaje. Eso está en &lt;code&gt;sync.ts&lt;/code&gt; y &lt;code&gt;messages.ts&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;SQLite cumple otra función: Outlook no conoce mi campo &lt;code&gt;junk_probability&lt;/code&gt;, así que no podría filtrar o agrupar los correos por ese valor directamente en Graph. En la base local separé &lt;code&gt;messages&lt;/code&gt; (metadatos), &lt;code&gt;judgments&lt;/code&gt; (respuestas de Jev), &lt;code&gt;scores&lt;/code&gt; (resultado de la política), &lt;code&gt;jobs&lt;/code&gt; (progreso) y &lt;code&gt;deletion_log&lt;/code&gt; (auditoría). Si cambio un umbral, recalculo &lt;code&gt;scores&lt;/code&gt; a partir de &lt;code&gt;judgments&lt;/code&gt; sin pagar otra clasificación.&lt;/p&gt;

&lt;h3&gt;
  
  
  Trabajos largos y una interfaz que explica el progreso
&lt;/h3&gt;

&lt;p&gt;Sincronizar, clasificar y borrar miles de correos tarda más que una petición web normal. Las rutas API inician &lt;strong&gt;trabajos en segundo plano dentro del proceso local&lt;/strong&gt; y devuelven el control al panel. &lt;code&gt;jobs&lt;/code&gt; guarda el rango, el cursor y los contadores; cada correo clasificado se persiste en cuanto termina. Si el servidor se reinicia, la aplicación reconoce el trabajo interrumpido y puedo continuarlo sin empezar de cero.&lt;/p&gt;

&lt;p&gt;Organicé la interfaz en cinco pasos —conectar, elegir fechas, sincronizar, clasificar y revisar— y añadí un registro de actividad para páginas recibidas, errores y reintentos. Esto resolvió un problema de diseño igual de importante que la clasificación: durante una operación larga necesitaba saber si el sistema avanzaba, esperaba por una cuota o requería que interviniera.&lt;/p&gt;

&lt;h2&gt;
  
  
  Qué le pregunté a Jev
&lt;/h2&gt;

&lt;p&gt;Una regla como «si dice &lt;em&gt;newsletter&lt;/em&gt;, bórralo» no distingue entre publicidad inútil y un correo que todavía necesito. Por eso Jev evalúa &lt;strong&gt;cada mensaje por separado&lt;/strong&gt; con diez preguntas de respuesta estructurada. La principal es, en esencia: &lt;em&gt;«¿Podría eliminar este correo definitivamente sin perder nada que aún necesite?»&lt;/em&gt; Su respuesta es un &lt;strong&gt;Noul&lt;/strong&gt;, la &lt;a href="https://docs.typesafe.ai/primitives" rel="noopener noreferrer"&gt;pregunta de sí o no de TypeSafe&lt;/a&gt; que devuelve una probabilidad entre 0 y 1. Esa probabilidad alimenta la lista de mensajes prescindibles.&lt;/p&gt;

&lt;p&gt;Este fragmento del clasificador (&lt;code&gt;classify.ts&lt;/code&gt;) muestra la idea central: envío el contexto de un correo junto con las diez preguntas y leo una respuesta tipada, sin interpretar texto libre.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;typeSafe&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;systemOne&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="na"&gt;state&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;stateFor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;message&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;folders&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;evaluatedAt&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
  &lt;span class="na"&gt;model&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;jev-latest&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;questions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;MAIL_QUESTIONS&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;probability&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;answers&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;is_disposable&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;noul&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Las otras preguntas aportan contexto y protección: si parece marketing o un aviso automático, si una persona espera respuesta, si contiene credenciales, si es un comprobante financiero o legal, y si su utilidad ya caducó. Para los casos que dependen del tiempo, Jev recibe tanto la fecha del correo como la fecha de evaluación. Un código temporal de hace años y una factura del mismo día no deberían tratarse igual.&lt;/p&gt;

&lt;p&gt;La aplicación hace &lt;strong&gt;una consulta a Jev por correo&lt;/strong&gt;, pero incluye las diez preguntas en esa misma consulta. Nueve son Noul y la décima puntúa cuánto dolería perder el mensaje en una escala de cinco niveles. Limité la clasificación a 15 consultas simultáneas y 900 inicios por minuto; los errores transitorios se reintentan y los mensajes que siguen fallando quedan identificados para volver a procesarlos. Los patrones como &lt;code&gt;no-reply&lt;/code&gt; solo adelantan un correo en la cola: nunca lo declaran basura por sí mismos.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Resultado del juicio&lt;/th&gt;
&lt;th&gt;Qué hacía yo con él&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;75 % o más&lt;/strong&gt; de probabilidad de ser prescindible&lt;/td&gt;
&lt;td&gt;Aparecía como &lt;strong&gt;eliminable&lt;/strong&gt;, listo para mi revisión.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;40 % a menos de 75 %&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Iba a &lt;strong&gt;revisar&lt;/strong&gt;: la decisión necesitaba más contexto.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Menos de 40 %&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Quedaba en &lt;strong&gt;conservar&lt;/strong&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Ese porcentaje es un juicio del modelo, no una garantía de que borrar sea seguro. Por eso añadí frenos independientes: un correo con señales fuertes de credenciales, documentos financieros o legales, o una conversación personal pasa a &lt;strong&gt;conservar&lt;/strong&gt; aunque Jev lo considere prescindible. También puedo proteger remitentes con una lista blanca. Antes de borrar muchos mensajes, la aplicación permite etiquetar una muestra de hasta cien correos y comparar mis decisiones con las de Jev para detectar falsos positivos.&lt;/p&gt;

&lt;p&gt;En términos de código, la política (&lt;code&gt;policy.ts&lt;/code&gt;) se parece a esto (versión abreviada):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;probability&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;judgment&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;is_disposable&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;protectedMail&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
  &lt;span class="nx"&gt;judgment&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;contains_access_credentials&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mf"&gt;0.60&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt;
  &lt;span class="nx"&gt;judgment&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;contains_financial_or_legal&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mf"&gt;0.60&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt;
  &lt;span class="nx"&gt;judgment&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;is_addressed_personally&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mf"&gt;0.70&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt;
  &lt;span class="nx"&gt;senderRule&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;always_keep&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;bucket&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;protectedMail&lt;/span&gt; &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;keep&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
  &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;probability&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.75&lt;/span&gt; &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;deletable&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
  &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;probability&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.40&lt;/span&gt; &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;review&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
  &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;keep&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Esta división fue deliberada: Jev aporta los juicios; una función determinista aplica mis umbrales y protecciones. Así puedo cambiar la política sin cambiar las respuestas del modelo, y puedo explicar por qué un correo quedó en cada lista.&lt;/p&gt;

&lt;h2&gt;
  
  
  El paso que realmente liberó espacio
&lt;/h2&gt;

&lt;p&gt;Clasificar no recupera almacenamiento por sí solo. Primero inspeccioné las listas, agrupé correos por remitente y revisé los mensajes dudosos. Para borrar, la aplicación muestra los bloqueos de protección y me exige escribir la cantidad exacta de correos seleccionados. Solo entonces envía a Microsoft Graph la operación de &lt;strong&gt;borrado permanente&lt;/strong&gt;. Mover mensajes a &lt;em&gt;Elementos eliminados&lt;/em&gt; no bastaba para el problema de cuota.&lt;/p&gt;

&lt;p&gt;Si quieres replicar algo parecido, la operación clave es &lt;code&gt;permanentDelete&lt;/code&gt;: Microsoft Graph la expone mediante &lt;code&gt;POST /me/messages/{id}/permanentDelete&lt;/code&gt; y, para una cuenta personal, requiere el permiso delegado &lt;code&gt;Mail.ReadWrite&lt;/code&gt;. La documentación explica que el mensaje pasa a la carpeta &lt;em&gt;Purges&lt;/em&gt; dentro de &lt;em&gt;Elementos recuperables&lt;/em&gt;. Esto no significa que desaparezca físicamente al instante: pueden aplicarse políticas de retención.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Documentación oficial de Microsoft Graph:&lt;/strong&gt; consulta los permisos, el endpoint y qué ocurre con la carpeta de purgas en la &lt;a href="https://learn.microsoft.com/graph/api/message-permanentdelete?view=graph-rest-1.0&amp;amp;wt.mc_id=studentamb_641347" rel="noopener noreferrer"&gt;guía de &lt;code&gt;permanentDelete&lt;/code&gt; de Microsoft Learn&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Antes de llamar a Graph escribo una fila &lt;code&gt;pending&lt;/code&gt; por cada mensaje en &lt;code&gt;deletion_log&lt;/code&gt;. Después envío &lt;code&gt;permanentDelete&lt;/code&gt; en lotes de hasta 20 operaciones, usando identificadores inmutables para que un movimiento entre carpetas no cambie la referencia al correo. Solo una respuesta exitosa marca el registro como &lt;code&gt;deleted&lt;/code&gt;; un &lt;code&gt;404&lt;/code&gt; o una respuesta incierta conserva el caso para revisión o reintento. Ese flujo está en &lt;code&gt;deletion.ts&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Durante la limpieza masiva apareció otro obstáculo: Microsoft limita la velocidad de las peticiones. El borrado se volvió lento cuando alcancé esa cuota. Incorporé un presupuesto preventivo de 9 000 operaciones por diez minutos y una espera compartida cuando Microsoft responde con &lt;code&gt;Retry-After&lt;/code&gt;. El proceso reenvía únicamente los elementos que fallaron, sin repetir los borrados ya confirmados. El panel muestra si está esperando por la cuota y el registro conserva el resultado de cada correo; un error de red no se presenta como un borrado exitoso.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Resultado registrado:&lt;/strong&gt; al 22 de septiembre de 2026, el historial local marcaba &lt;strong&gt;62 025 correos distintos como borrados&lt;/strong&gt; y &lt;strong&gt;cero pendientes o fallidos&lt;/strong&gt;. La base local conservaba &lt;strong&gt;8 058 mensajes&lt;/strong&gt;. Jev usó &lt;strong&gt;100 737 845 tokens&lt;/strong&gt;, con un costo de &lt;strong&gt;3.6393 dólares&lt;/strong&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Lo que empezó como un buzón imposible de ordenar terminó en un flujo manejable: acotar fechas, pedir a Jev juicios claros, proteger lo valioso, revisar y confirmar el borrado. Jev me ahorró la clasificación repetitiva; las reglas y la revisión humana me ayudaron a conservar el control de la decisión final.&lt;/p&gt;

&lt;h3&gt;
  
  
  Para profundizar
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://docs.typesafe.ai/introduction" rel="noopener noreferrer"&gt;Qué es Jev y cómo funciona&lt;/a&gt;, en la documentación oficial de TypeSafe.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://docs.typesafe.ai/primitives" rel="noopener noreferrer"&gt;Noul, Score y Choice&lt;/a&gt;, las respuestas estructuradas con las que construí la clasificación.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://api.typesafe.ai/docs" rel="noopener noreferrer"&gt;Referencia de la API System One&lt;/a&gt;, para ver el contrato de las consultas.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://learn.microsoft.com/graph/api/message-permanentdelete?view=graph-rest-1.0&amp;amp;wt.mc_id=studentamb_641347" rel="noopener noreferrer"&gt;Borrado permanente de mensajes (Microsoft Graph)&lt;/a&gt;, guía oficial con los permisos y la carpeta de purgas.&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  Sobre mí
&lt;/h3&gt;

&lt;p&gt;Soy Fernando Peralta, desarrollador web y Technical Lead en &lt;a href="https://www.devstoremx.xyz/" rel="noopener noreferrer"&gt;Devstoremx&lt;/a&gt;, una agencia de desarrollo web en México donde trabajamos en sitios web, aplicaciones a medida, ecommerce, integraciones y automatizaciones.&lt;/p&gt;

&lt;p&gt;También comparto proyectos personales, experiencias y artículos técnicos en &lt;a href="https://fernandoperalta.xyz/es/" rel="noopener noreferrer"&gt;mi sitio web y blog de desarrollo&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Si prefieres leer este caso con el diseño y las ilustraciones originales, visita &lt;a href="https://fernandoperalta.xyz/es/blog/como-libere-12gb-hotmail-jev/" rel="noopener noreferrer"&gt;el artículo completo en mi blog&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>nextjs</category>
      <category>ai</category>
      <category>sqlite</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
