IT 204: E-Commerce
By the end of this chapter, you will be able to:
The digital environment is filled with threats that can compromise an online business. Understanding these is the first step toward effective defense.
Malware: Software designed to harm or disrupt computer systems, steal data, or gain unauthorized access.
Viruses attach to files and spread when those files are run or shared, sometimes corrupting data.
Worms copy themselves and can exploit network vulnerabilities to spread to other computers.
Trojans disguise themselves as legitimate software. Once installed, they may give attackers unauthorized access.
Malware that may encrypt data and demand payment; attackers may also steal data and threaten disclosure.
Priorities: reduce exposure, patch, restrict access and test recoverable backups.
A person with legitimate access may intentionally misuse it, or cause harm through error.
Priorities: least privilege, separate duties, review access and monitor sensitive actions.
A departing employee exports the customer list using their own authorized login. Is antivirus alone the right defense?
No. The action may use normal software. Access lifecycle controls and audit evidence matter; backups alone do not prevent data theft.
Match each scenario to the correct malware type:
Phishing: A social engineering attack using fraudulent emails or websites to trick users into revealing sensitive information.
From: NpBank Support <support-np@security-update.com>
Subject: Security Alert: Your Account Has Been Limited
Dear Valued Customer,
We detected unusual activity on your account. For your protection, we have temporarily suspended it. Please verify your identity immediately to restore access.
Click here to login and verify your details.
Thank you,
The NpBank Security Team
Training example: clues are warning signs, not proof. Knowing your name does not authenticate a sender. Verify independently.
Click the highlighted parts of the email to reveal each red flag:
SMS lures you to disclose credentials or authorize a payment.
A voice caller impersonates support, a bank or another trusted party.
A targeted message uses details about a person or organization.
“Support” calls with your name and says to read out your login OTP. Does knowing your name prove the caller is genuine?
No. End the interaction and contact the provider using its official app or a known contact path. Never share login OTPs or passwords with a caller.
DoS Attack: An attempt to make a website or network resource unavailable to its intended users by overwhelming it with a flood of traffic.
Predetermined animation, not measured network capacity. Layered DDoS mitigation exists; high traffic alone does not prove an attack.
Illustrative festival shop: 120 orders/hour, Rs 1,500 average order value, 20% contribution margin. Checkout is unavailable for 2 hours. Assume all affected orders are lost, with no later recovery.
If half the customers return later, how does the direct loss estimate change? What does this calculation leave out?
Direct contribution at risk falls to Rs 36,000. Recovery effort and reputation may add costs. Revenue is not profit, and high traffic alone does not prove an attack.
Spoofing forges identity; pharming redirects even a correctly typed address via DNS tampering; fake shops harvest payment or deliver nothing.
daraz-deal.com or esewa-kyc-update.info imitates the real shop, bank or wallet. Check the full domain, not just the logo.
Pharming poisons DNS or router settings so the correct name resolves to the attacker's copy. The user typed it right and still lands on a fake page.
No verifiable address or phone, prices far below market, advance payment only, fresh social page, no refund policy. Verify through the official app or known contact.
HTTPS alone does not prove honesty: a fake shop can hold a valid certificate for its own lookalike domain.
Sniffing passively reads unprotected traffic; a man in the middle (MITM) actively relays and can alter it.
Rule of thumb: never log in to a wallet or admin panel over an untrusted hotspot without a VPN — and treat any certificate warning as a stop sign.
SQL injection (SQLi) smuggles database commands through input fields. A classic probe typed into a login box:
' OR '1'='1
If the query is built by string concatenation, this tautology can log the attacker in or dump the customer table.
Exam line: SQLi is stopped by parameterized queries first and WAF second; zero-days buy time with isolation, not with antivirus alone.
The unauthorized access and theft of sensitive, protected, or confidential data. This can include customer credit card information, personal details, and business secrets.
Impact: Severe financial loss, regulatory fines, and catastrophic reputational damage.
The act of electronically defacing an existing website's pages, changing content, or even deleting the entire site. The motivation is often to disrupt business or make a political statement.
Impact: Erodes customer trust and can cause immediate loss of sales.
In pairs: identify the vulnerability, the business asset and one control that would require evidence rather than reassurance.
Consumer information was the asset at risk. Asset inventory, timely detection, restricted database access and accountable follow-up are complementary controls. The lesson applies to shops as well as credit bureaus.
All company-named scenarios and counts here are hypothetical; no company is accused. Loss rates are unverified examples, not Nepal benchmarks. Fines depend on applicable law.
A Nepali e-commerce site has been attacked. Choose the most likely primary impact:
Source-check note: the original 2017 ISP / 1.5-million assertion below is unverified; do not treat the date/count as established history.
Nepali e-commerce businesses and consumers face a growing number of security challenges.
Real-World Example: In 2017, a major Nepali ISP suffered a data breach that exposed the personal information of over 1.5 million customers.
All company-named scenarios and counts here are hypothetical; no company is accused. Loss rates are unverified examples, not Nepal benchmarks. Fines depend on applicable law.
Exam map: name the threat, state the dimension it violates first, and pair one control.
| Threat | Primary dimension violated | Representative control |
|---|---|---|
| Malware, ransomware, SQLi, vandalism | Integrity, availability | Patching, backups, WAF |
| Data breach, sniffing, spyware | Confidentiality, privacy | TLS, access control, VPN |
| Phishing, spoofing, pharming, identity fraud | Authenticity, confidentiality | Domain checks, MFA, official app |
| Card fraud with denial | Nonrepudiation | Signed evidence, 3DS, logs |
| DoS and DDoS | Availability | Upstream mitigation, CDN |
One threat can touch several dimensions — state the primary one first, then note the spillover.
The primary e-commerce threats are malicious code (malware), deceptive phishing attacks, and overwhelming DoS/DDoS attacks.
Phishing is a form of social engineering that preys on user trust to steal credentials and financial information.
A DoS/DDoS attack's goal is to shut down a website by flooding it with more traffic than it can handle, making it unavailable to legitimate customers.
Spoofing & pharming fake identity (lookalike domains, DNS tampering); sniffing & MITM read the wire (open Wi-Fi, fake hotspots — counter with HTTPS + VPN); SQLi exploits weak input handling (fix with parameterized queries, buy time with a WAF).
Short answer
' OR '1'='1 and name the code-level fix.Long answer
Revise the answers in the full note.
Next Up: Unit 4.3 - Technology Solutions for E-commerce Security