Sub topic 14
Securing the Account: Strong Authentication and Phishing Awareness
A brokerage account holds money and can move it. Attackers target these accounts for that reason. This chapter assumes you have already applied for an account and been verified, as covered in the previous chapters. It also assumes you know basic online banking habits such as passwords and email. The examples are US-based. Other countries have different consumer protections, so check your own jurisdiction.
By the end you should be able to set up layered login protection, recognize common phishing patterns, and respond quickly if something goes wrong.
Why brokerage accounts are targeted
Attackers usually want one of two things: to move cash out, or to use your holdings in a scheme. Common schemes include a "pump and dump," where the attacker buys a thinly traded stock, then uses hijacked accounts to buy it and push the price up. Another is to withdraw funds through a linked bank account or a new payee.
Brokerage protections differ from bank protections. In the US, SIPC covers missing assets if a firm fails. It does not generally cover losses from someone logging into your account with your credentials. Some brokers offer their own security guarantees, but the terms vary and often require you to have followed security practices. Read your broker's policy before you need it.
The practical lesson is that your login security is your first and main defense.
The layers of login security
Good account security uses several independent layers. If one fails, another still holds.
Layer 1: a unique password
A password is the first layer. Its main weakness is reuse. When another website is breached, attackers try the leaked email and password pair on financial sites. This is called credential stuffing.
Follow these rules:
- Use a password that is unique to the broker. Never reuse it anywhere else.
- Make it long. A random passphrase of four or more words, or a random string from a password manager, is better than a short complex one.
- Store it in a password manager. The manager generates and fills passwords for you, so you do not need to remember them.
- Secure the email account tied to the broker even more carefully. Password resets go to that address, so whoever controls your email can often take over your accounts.
The sketch below shows how much length helps. It estimates the number of guesses needed for a random password, given the size of the character set and the length.
import math
def entropy_bits(charset_size, length):
"""Bits of entropy for a password chosen uniformly at random."""
return length * math.log2(charset_size)
# 12 random characters from 94 printable ASCII symbols
print(round(entropy_bits(94, 12), 1))
# 4 random words from a 7,776-word list (a common passphrase list size)
print(round(entropy_bits(7776, 4), 1))
# 6 random words from the same list
print(round(entropy_bits(7776, 6), 1))Each extra bit doubles the guesses needed. These figures only hold when the choice is truly random. A password you invent yourself, such as a pet name with a number at the end, has far less entropy than the formula suggests.
Layer 2: multi-factor authentication
Multi-factor authentication (MFA) requires a second proof of identity besides the password. The factors fall into three groups: something you know (password), something you have (phone or key) and something you are (fingerprint or face). A password plus a code from your phone combines two groups.
Not all second factors are equally strong. The table ranks the common ones.
| Method | How it works | Main weakness |
|---|---|---|
| SMS code | A text message with a one-time code | SIM swapping and message interception |
| Email code | A code sent to your email | Only as safe as the email account |
| Authenticator app (TOTP) | An app generates a code that changes every 30 seconds | You can be tricked into typing the code into a fake site |
| Push approval | You tap "approve" on your phone | Fatigue attacks, where you approve a prompt by mistake |
| Passkey or hardware security key | A cryptographic key tied to the real site's address | Loss of the device if no backup exists |
Passkeys and hardware security keys (FIDO2 or WebAuthn standards) are the strongest options. The device signs a challenge that includes the website's real address. A fake site at a different address cannot get a valid response, so these methods resist phishing even if you are fooled by a convincing page.
Choose the strongest method your broker supports. If it offers only SMS, use it anyway, because SMS is much better than no second factor. Then look at what else you can do to reduce SIM-swap risk, such as adding a PIN or port-out lock with your mobile carrier.
How a time-based code works is worth knowing, because it explains why a code you type into a fake site can still be stolen. The app and the broker share a secret. Both combine the secret with the current time to compute a short code. The code has no tie to the website address, so an attacker can relay it to the real site within seconds.
import hmac
import hashlib
import struct
import time
def totp(secret_bytes, step=30, digits=6, now=None):
"""Compute a time-based one-time code (RFC 6238 style, SHA-1)."""
counter = int((now if now is not None else time.time()) // step)
msg = struct.pack(">Q", counter)
digest = hmac.new(secret_bytes, msg, hashlib.sha1).digest()
offset = digest[-1] & 0x0F
code = struct.unpack(">I", digest[offset:offset + 4])[0] & 0x7FFFFFFF
return str(code % (10 ** digits)).zfill(digits)
print(totp(b"example-shared-secret", now=1_700_000_000))The secret here is a made-up demonstration value. Never paste a real secret into code or share it.
Save your recovery options
When you enable MFA, the broker usually shows backup codes. Store them offline or in your password manager. If you lose your phone and have no backup, regaining access can take days of identity checks. Also register a second authentication method if the broker allows it.
Recognizing phishing
Phishing is a message that imitates a trusted sender to make you reveal credentials, approve a login or send money. For brokerage customers, the common forms are:
- Email phishing: "Unusual activity detected. Log in now to avoid suspension."
- Smishing: the same message by text.
- Vishing: a phone call from someone claiming to be the broker's fraud department.
- Fake support: a search-engine ad or social media account posing as broker support, with a phone number or chat link that leads to a scammer.
- Fake apps and sites: lookalike domains, or apps that imitate the broker's app.
- Account takeover follow-up: after attackers hijack an account, they may call you pretending to help "reverse" the fraud.
Warning signs
- Urgency or threats: "Act in 24 hours or your account will be closed."
- A request for credentials, codes or full Social Security numbers. Real brokers do not ask you to read out a one-time code.
- A mismatched address:
secure-yourbroker-login.comis notyourbroker.com. Look at the part immediately before the first single slash. - An unexpected attachment or a link you did not request.
- A request to move money to a "safe account." This is always a scam.
A safe habit
Do not act from the message. Instead:
- Close the email or text.
- Open the broker's official app, or type the address yourself, or use a bookmark you saved earlier.
- Check the message center inside the account for the same notice.
- If you need to speak to someone, call the number printed on your statement or the back of your card, not the one in the message.
Checking a link
The following script splits a link and compares its host to the domain you expect. It is a teaching aid, not a complete defense, because attackers use many tricks.
from urllib.parse import urlparse
def host_matches(url, expected_domain):
"""True if the URL's host is the expected domain or a subdomain of it."""
host = (urlparse(url).hostname or "").lower()
return host == expected_domain or host.endswith("." + expected_domain)
print(host_matches("https://www.example.com/login", "example.com"))
print(host_matches("https://example.com.login-check.net/", "example.com"))
print(host_matches("https://examp1e.com/", "example.com"))The second example is a common trick. The real name appears at the start of the host, but the actual registered domain is login-check.net. The third uses a digit "1" in place of the letter "l".
Device and session hygiene
- Keep software updated. Update your operating system, browser and the broker's app. Many attacks use known flaws that have patches.
- Install apps only from official stores, and confirm the publisher name.
- Avoid public Wi-Fi for logins, or use your phone's mobile connection. HTTPS protects the content of the connection, but a fake hotspot can still lead you to a fake page.
- Use a screen lock on your phone and computer.
- Log out on shared computers, and avoid "remember this device" there.
- Beware of remote-access requests. Do not install screen-sharing software at the request of a caller.
Account-level safeguards
Most brokers offer settings that limit damage even if a login is compromised. Check your broker for these:
- Alerts for logins, password changes, new payees, and withdrawals, sent by email and push notification.
- Trusted bank accounts only. Link a bank account you own and require extra checks to add or change one. Be wary of any request to add a third-party payee.
- Withdrawal holds. Some brokers delay withdrawals after a password or contact-detail change. Treat that delay as a feature.
- Verbal passwords or PINs for phone support.
- Trade and transfer limits, if offered.
- Keeping contact details current, so alerts reach you.
Review statements and the activity page each month. Small unexplained transfers can be a test before a larger theft.
If you suspect a compromise
Speed matters. Work through this order:
- Contact the broker using the official number. Ask them to lock the account and review recent activity.
- Change your password from a clean device, then change the email password if it may be exposed.
- Revoke sessions and review MFA devices. Remove any you do not recognize.
- Check linked banks and recent transfers. Tell your bank to watch for fraud too.
- Keep records: screenshots, message headers and dates.
- Report it. In the US, file a report at IdentityTheft.gov, and consider a credit freeze with the three credit bureaus. Complaints about brokers can also go to the SEC or FINRA.
A short setup checklist
- Create a unique passphrase in a password manager.
- Turn on the strongest MFA option available, preferably a passkey or hardware key.
- Save backup codes offline.
- Secure your email account with the same level of protection.
- Turn on all login and transfer alerts.
- Add a carrier PIN or port-out lock for your phone number.
- Bookmark the broker's real login page.
- Review account activity monthly.
Exercise
You get a text saying your brokerage account is locked and giving a link to "verify now." You also got a call minutes earlier from someone asking you to read back a six-digit code you just received. Describe what you should do and why an authenticator-app code is weaker than a passkey in this situation.
Show answer
Do not click the link and do not read out the code. End the call and contact the broker through the official app or the phone number on your statement, then check the message center for any real notice. A time-based code is not tied to a website address, so an attacker who tricks you into giving it up can use it on the real site within seconds. A passkey signs a challenge that includes the real site's address, so it fails on a fake site and there is no code to hand over.
Exercise
Using the entropy formula (length times log base 2 of the character set size), which has more entropy: 10 random characters from 94 symbols, or 5 random words from a 7,776-word list? Show the calculation.
Show answer
Ten characters give 10 × log2(94) ≈ 10 × 6.55 ≈ 65.5 bits. Five words give 5 × log2(7776) ≈ 5 × 12.92 ≈ 64.6 bits. They are about equal, with the characters slightly ahead. The passphrase is much easier to type and remember, and each added word gives about 12.9 more bits.