A developer building on Ethereum or Polygon faces a recurring threat that goes undetected by most casual users: the signature-spoofing attack. An attacker crafts a transaction that appears to transfer a token to a legitimate contract address, but the actual bytecode interaction authorizes something else entirely—often a full wallet drain or permission grant to a malicious actor. The user sees what looks like a normal approval, signs it, and loses control of their assets before understanding what happened. This is not a failure of blockchain technology. It is a failure of the user interface between the wallet and the dApp, where the displayed information and the actual instruction diverge.
The Guarda Wallet Extension represents a class of non-custodial wallet tools designed to prevent exactly this class of attack through transparent transaction examination and user-facing warnings. Because the wallet maintains complete custody of private keys on the user’s local device, every transaction passing through the extension must be examined, signed, and broadcast by the user—and critically, displayed in human-readable form before approval. The extension can show you what you are actually signing, not just what the dApp told you to expect. Understanding how these safeguards work, and where they reach their limits, is essential for anyone interacting with decentralized applications on Ethereum, Polygon, or other EVM-compatible networks.
How signature-spoofing attacks work on EVM chains
The EVM—Ethereum Virtual Machine—interprets instructions encoded as bytecode. When a user interacts with a dApp, the interface typically generates a transaction object containing: the destination address, the function selector (first four bytes of the function signature hash), encoded parameters, and optional value transfers. The browser submits this to the connected wallet, which must display it to the user for approval. This is the critical moment. If the wallet shows one thing and the transaction executes something else, the user cannot make an informed decision.
Signature-spoofing occurs when the attacker controls the dApp interface or injects malicious code into a compromised site. The dApp displays text saying «Approve DEX Router,» but the actual transaction calls a different contract function—perhaps a delegation method on a token or a write function on an attacker-controlled contract. The transaction’s function selector does not match what the interface claims. Because most users do not manually verify the hex data, they sign based on the dApp’s representation rather than the wallet’s decoded display.
Polygon and other EVM chains amplify this risk because they inherit the same transaction model and function encoding as Ethereum. The attacker’s toolkit does not change. A malicious dApp can be deployed on Polygon with identical code and identical attack vectors. Users who feel comfortable on Ethereum may carry the same trust assumptions to Polygon and encounter an unfamiliar interface or compromised site without additional caution.
The traditional remedy is for the wallet to decode the transaction’s function selector and parameter data, display the intended action in plain language, and warn when the displayed action does not match a known, trusted function signature. This is what a properly designed guarda wallet extension does automatically before presenting the approval screen to the user.
Transaction decoding and the limits of on-device verification
When you approve a transaction through a Web3 wallet, the extension must perform several decoding steps. First, it identifies the destination contract address and checks whether it matches what the dApp claimed. Second, it extracts the function selector—the first four bytes of the transaction data. Third, it queries an internal or external database of known function signatures to find the matching function name and parameter types. Fourth, it decodes the hex-encoded parameters into human-readable values.
This process is only as reliable as the signature database. If the wallet has never encountered the function before, or if an attacker has created a new contract specifically for the attack, the wallet may display the generic message «Unknown Function» along with the raw hex data. At that point, the user faces a choice: approve a transaction they cannot fully understand, or reject it. Most users reject. Some, believing they are on a legitimate dApp, try to verify the data manually—and most do not succeed. A few approve anyway, trusting the dApp’s representation.
The Guarda Wallet Extension mitigates this through a combination of strategies. It maintains an updated database of function signatures from major protocols—Uniswap, Aave, OpenZeppelin standards, and other commonly used contracts. It displays the target contract’s address prominently so the user can cross-reference it against the dApp’s stated destination. It highlights the function name and parameters in a structured format rather than showing raw bytecode. For known dangerous patterns—such as unlimited token approvals to addresses not owned by the dApp—it shows explicit warnings.
However, the extension cannot prevent attacks that rely on social engineering or on dApps that the user already trusts. If the dApp’s domain itself is legitimate but has been compromised, the transaction display will appear normal. If the user has previously interacted with the attacker’s contract, it may appear in the wallet’s transaction history as something the user «has done before,» reducing suspicion. The wallet’s role is to show you the truth; it cannot force you to see it.
Common attack patterns on Ethereum and Polygon dApps
The most prevalent attack is the unlimited token approval, where a dApp asks the user to approve spending of all their tokens to a contract address. Normally this is necessary because the DEX or lending protocol must move tokens from the user’s wallet to execute a trade or collateral transfer. The attacker exploits this by creating a fake dApp or hijacking a legitimate one, then requesting approval to a malicious contract that immediately transfers all approved tokens to the attacker’s address. By the time the user tries to execute their actual transaction, the tokens are already gone.
A related variant is the contract swap, where the attacker modifies the dApp so that the contract address shown to the user is legitimate, but the actual transaction data approves or delegates to a different address. If the user is on Polygon and expects to approve the official Uniswap router, they might actually approve an attacker’s delegator contract. The transaction looks legitimate in the dApp interface because the interface is not showing the real target—only what the attacker wants the user to think they are approving.
Permit function abuse represents a third pattern. The ERC-2612 permit function allows a user to approve spending with a signature rather than a separate transaction, reducing gas costs and improving UX. An attacker can craft a permit transaction that appears to approve token spending but actually signs over permissions to an attacker-controlled contract. The signature is valid, and the transaction executes as intended—just not as the user intended.
Delegation attacks target governance tokens or staking contracts. A user intends to delegate their voting power, but the transaction actually delegates to an attacker’s address. Staking pool exploits work similarly: the user intends to stake tokens, but the transaction sends them to a contract that has no withdrawal mechanism or that requires a second signature step the attacker controls. A properly functioning Ethereum wallet or Polygon wallet will decode these and show the actual delegator address, but only if the user reads the displayed information carefully.
How the Guarda Wallet Extension displays transaction details safely
When you initiate a transaction through a dApp while using the Guarda Wallet Extension, the extension intercepts the request before signing. It presents a detailed approval screen that separates the interface claim from the actual instruction. The screen shows the target contract address in full, with a copy button for verification. It displays the function name, the decoded parameters, and the expected effect. For token transfers, it shows the amount, denomination, and receiving address. For approvals, it shows the spender address and the approved amount.
The extension also performs pattern matching against known attack signatures. If a transaction attempts to approve an unlimited amount to an address that has not been used before, or to an address that does not match any known protocol contract, the extension highlights this as a potential risk. It does not block the transaction—the user retains the final decision—but it does make the risk visible.
For dApps that the user has interacted with before, the extension can track the user’s approval history and warn if a new transaction appears to re-approve the same contract or to approve an unusually high amount. This relies on local device storage of transaction history, which means the extension never uploads your transaction data to external servers. Your approval history remains on your device, encrypted and only accessible with your password.
The extension’s browser integration also prevents one class of attack: the misleading visual overlay. Some attacks attempt to hide the transaction details behind a fake approval popup that mimics the real wallet interface. Because the extension runs at the browser level and controls the content security policy, it can ensure that no third-party code can overlay its approval screen. What you see in the extension window is what Guarda is actually showing you, not a layer added by the dApp or injected code.
Practical verification techniques for users
The most important verification step happens before you even use the dApp: confirm the domain name. Attackers register domains that are visually similar to legitimate sites—swapuniswap.com instead of uniswap.com, or use a legitimate domain with a path like app.uniswap.com.evil.com. The browser’s address bar shows the true domain. If you are not absolutely certain, navigate to the official site through a trusted link or by typing the domain directly rather than following a link from social media or email.
Once on the dApp, before clicking «approve,» open the Guarda Wallet Extension and verify that it is showing the correct destination contract. For major protocols, the extension will display the contract name alongside the address. Cross-reference this against the protocol’s official documentation. For unknown contracts, look up the address on Etherscan or Polygonscan. If the contract code is obfuscated, does not match a known standard, or was deployed recently with no clear purpose, that is a warning sign.
Read the decoded parameters carefully. If you are approving a token, confirm that the spender address is the contract you intended to interact with, not an arbitrary address. If you are staking or delegating, verify the target address. Spending a 30 seconds to read the extension’s display can prevent a complete loss of funds. Do not assume that if the dApp interface looks professional, the transaction is safe. Attackers create convincing interfaces specifically to lower users’ guard.
For high-value transactions, consider performing a test transaction first. Approve a small amount, execute the transaction, and verify that it behaved as expected before approving a larger amount. This works best for dApps where you can adjust the transaction amount, such as token swaps or staking. For one-time approvals, you can approve a smaller amount initially, and then approve again for additional tokens if the dApp requires it.
The role of non-custodial architecture in preventing compromise
The reason the Guarda Wallet Extension can display and verify transactions before signing is that it maintains complete custody of your private keys locally on your device. No server holds your keys. No third party can sign transactions on your behalf. Every transaction must be explicitly approved by you, and the extension’s display is the only information between the dApp and your keys. This non-custodial model is not just a privacy feature—it is a security requirement for effective transaction verification.
In contrast, custodial services or centralized exchange wallets do not show you this level of detail because they control signing on your behalf. The exchange may validate transactions, but that validation is opaque to you. If the exchange’s system is compromised or if the exchange itself turns malicious, you have no way to verify what was actually signed. You trust the exchange’s security, not the transaction’s transparency.
By maintaining local custody through the extension, you gain the ability to verify but also accept the responsibility for doing so. Your recovery phrase becomes critical. If an attacker obtains your recovery phrase, they can import your wallet into their own copy of the extension on another device and sign transactions without your approval. This is why recovery phrase security is not optional—it is the foundation of non-custodial security.
The extension’s device-level encryption adds another layer. Your recovery phrase and private keys are encrypted on your device, locked behind a password that only you know. An attacker with physical access to your computer cannot simply extract the keys—they must guess your password or extract it through keylogging or other active compromise. This means your security also depends on device security: keeping your operating system updated, avoiding malware, and using a strong password for the extension itself.
When wallet extension warnings may not be enough
The extension can decode function calls and display them accurately, but it cannot guarantee that the dApp’s stated purpose matches its actual code. If a dApp claims to be a DEX but is actually a phishing contract, the extension will show you that it is calling a contract function to transfer tokens. It will not say «this is a phishing attack.» The extension assumes the user can evaluate whether the transaction makes sense in context.
Similarly, the extension cannot prevent a user from approving a malicious contract that the user genuinely believes is legitimate. If you visit a phishing site that appears to be Aave or Uniswap, and you intentionally approve a transaction that you believe is a legitimate interaction, the extension’s job is to show you what you are actually approving—not to prevent you from approving something dangerous.
Advanced attacks may also target the extension’s signature database. If an attacker creates a contract that mimics a legitimate function signature but performs a different action under the hood, the extension may decode it as a legitimate function. This is a limitation of signature-based detection. It catches casual attacks but not sophisticated contract-level exploits. For these, security relies on code audits and community reputation rather than wallet-level verification.
Browser-level compromise presents another boundary. If your computer is infected with malware that can access browser memory, it might be able to see transactions after you approve them but before they are broadcast. Spyware that records screen activity could observe your recovery phrase if you ever type it. The extension cannot protect against compromise of your entire device—it can only ensure that the wallet’s own code runs securely and that your keys remain encrypted at rest.
Building a complete defense strategy around the extension
Using the Guarda Wallet Extension effectively means adopting several complementary practices. First, treat it as a security tool, not a convenience tool. Do not approve transactions quickly or while distracted. Read the extension’s display. Verify addresses. Take the extra 30 seconds. Second, maintain your device security. Update your operating system, use antivirus software, and avoid downloading executable files from untrusted sources. Your wallet is only as secure as your device.
Third, segregate your keys. If you hold significant assets, consider keeping the bulk of them in a hardware wallet or a separate non-custodial wallet that is not connected to your browser. Use the extension wallet for smaller, frequent transactions. This limits your exposure if the browser or device is compromised. Fourth, test recovery. Before you need your recovery phrase, verify that you can restore your wallet from it. Create a new wallet with the phrase on an air-gapped device or a different computer and confirm that the addresses match. If your recovery process is broken, you will discover it at the worst possible time.
Fifth, stay informed about current attack methods. The attack landscape changes frequently. Phishing sites become more convincing. New contract vulnerabilities emerge. Following security-focused accounts and communities will help you recognize new patterns. Sixth, use multiple addresses if the extension and your dApp history become complex. The Guarda Wallet Extension supports multiple accounts, so you can use separate addresses for different purposes. This reduces the risk that a successful attack on one account exposes all your assets.
Finally, remember that the extension’s role is detection and transparency, not prevention. It shows you what you are signing. It warns about suspicious patterns. It prevents some categories of attack through interface design. But it cannot prevent you from making a bad decision, and it cannot protect you from all possible attacks. Your judgment remains the most important security layer.
Frequently asked questions
Can the Guarda Wallet Extension prevent me from approving a malicious dApp?
The Guarda Wallet Extension shows you what you are actually signing and warns about suspicious patterns, but it cannot prevent you from intentionally approving a malicious transaction. If you visit a phishing site that you believe is legitimate and approve a transaction intentionally, the extension will display the transaction accurately but will not block it. Your verification of the dApp’s authenticity and your careful reading of the transaction details are essential.
What should I do if the Guarda Wallet Extension shows «Unknown Function» for a transaction?
An «Unknown Function» display typically means the wallet has not encountered this function signature before or cannot match it to a known contract. Do not automatically approve it. Look up the contract address on Etherscan or Polygonscan, review the contract code if available, and verify that the contract is legitimate. If you cannot confirm its purpose, reject the transaction. A legitimate dApp will use standard functions that the extension can decode.
Is the Guarda Wallet Extension safe to use on a browser with other extensions installed?
Other extensions can potentially interfere with the wallet or inject code into the page. Install only extensions from trusted sources, and be cautious about extensions that request access to all websites or that can modify page content. For maximum security, use a separate browser profile or dedicated browser instance for crypto transactions if you have many other extensions installed. The Guarda Wallet Extension itself prevents content injection at the approval screen level, but device-level security remains your responsibility.
