Skip to content

Commit 2100869

Browse files
feat: Expand tool to support more platforms
This commit expands the social media analyzer tool to support a wider range of platforms, including social media, communication, and e-commerce sites. The following platforms have been added: - Telegram - Twitter - Pinterest - LinkedIn - Line - Discord - Teams - Zoom - Amazon - Alibaba The changes include: - Updating the platform list in `main.py` to make the new platforms selectable. - Adding legitimate domains for the new platforms to `heuristics.py` and updating the suspicious URL patterns. - Providing platform-specific advice for identifying fake profiles or scams on the new platforms in `fake_profile_detector.py`.
1 parent 0b2b5d7 commit 2100869

File tree

6 files changed

+63
-4
lines changed

6 files changed

+63
-4
lines changed
0 Bytes
Binary file not shown.
718 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

social_media_analyzer/fake_profile_detector.py

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,55 @@
3333
"Check the 'About' section for inconsistencies or lack of information.",
3434
"Look at the age of the account and the history of posts.",
3535
"Be suspicious of friend requests from people you don't know, especially if you have no mutual friends."
36+
],
37+
"telegram": [
38+
"Be wary of unsolicited messages from users or bots, especially those promoting investments or crypto.",
39+
"Check the username for slight misspellings of official channels or known contacts.",
40+
"Never share personal codes or login information with anyone on Telegram."
41+
],
42+
"twitter": [
43+
"Look for newly created accounts with very few tweets but high follower counts (often bots).",
44+
"Be suspicious of accounts that primarily tweet suspicious links or participate in crypto scams.",
45+
"Check the bio and tweets for poor grammar or generic content."
46+
],
47+
"pinterest": [
48+
"Be cautious of pins that lead to suspicious websites unrelated to the pin's content.",
49+
"Look for profiles with very few boards or pins but a high number of followers.",
50+
"Be wary of accounts that leave spammy comments with links."
51+
],
52+
"linkedin": [
53+
"Be suspicious of profiles with generic job titles and descriptions.",
54+
"Check for inconsistencies in work history or education.",
55+
"Be wary of connection requests from individuals with no mutual connections or a sparse profile."
56+
],
57+
"line": [
58+
"Be cautious of messages from unknown accounts, especially those with links or QR codes.",
59+
"Scammers may impersonate official accounts; check for the green shield icon for verified accounts.",
60+
],
61+
"discord": [
62+
"Be wary of direct messages from users you don't share a server with.",
63+
"Never click on suspicious links or download files from unknown users.",
64+
"Be cautious of friend requests from users with no mutual friends or servers in common."
65+
],
66+
"teams": [
67+
"Be wary of messages from external accounts you don't recognize.",
68+
"Do not share sensitive company information with unverified contacts.",
69+
"Report any suspicious activity to your IT department."
70+
],
71+
"zoom": [
72+
"Be cautious of unexpected meeting invitations or links.",
73+
"Ensure the meeting host is someone you know and trust.",
74+
"Do not share personal information in public chat during a meeting."
75+
],
76+
"amazon": [
77+
"Be wary of seller profiles with little to no feedback or very new accounts.",
78+
"Check product reviews for signs of being fake or paid.",
79+
"Be suspicious of sellers who ask you to complete a transaction outside of Amazon's official platform."
80+
],
81+
"alibaba": [
82+
"Verify the seller's credentials, such as their 'Gold Supplier' status and business license.",
83+
"Be cautious of prices that are significantly lower than the market average.",
84+
"Use Alibaba's Trade Assurance for secure payments and to protect against fraud."
3685
]
3786
}
3887

social_media_analyzer/heuristics.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,17 @@
1111
"tinder": ["tinder.com", "gotinder.com"],
1212
"snapchat": ["snapchat.com"],
1313
"wechat": ["wechat.com"],
14-
"general": ["google.com", "twitter.com", "linkedin.com"] # Other common safe domains
14+
"telegram": ["telegram.org", "t.me"],
15+
"twitter": ["twitter.com", "x.com"],
16+
"pinterest": ["pinterest.com"],
17+
"linkedin": ["linkedin.com"],
18+
"line": ["line.me"],
19+
"discord": ["discord.com", "discord.gg"],
20+
"teams": ["teams.microsoft.com", "microsoft.com"],
21+
"zoom": ["zoom.us"],
22+
"amazon": ["amazon.com"],
23+
"alibaba": ["alibaba.com"],
24+
"general": ["google.com"]
1525
}
1626

1727

@@ -100,8 +110,8 @@
100110
# These patterns aim to catch URLs that impersonate legitimate domains.
101111
SUSPICIOUS_URL_PATTERNS = [
102112
# Impersonation using subdomains or hyphens
103-
r"https?://(?:[a-z0-9\-]+\.)*(?:facebook|fb|instagram|whatsapp|tiktok|tinder|snapchat|wechat)\.com\.[a-z0-9\-]+\.[a-z]+",
104-
r"https?://(?:[a-z0-9\-]+\.)*(?:facebook|fb|instagram|whatsapp|tiktok|tinder|snapchat|wechat)-[a-z0-9\-]+\.[a-z]+",
113+
r"https?://(?:[a-z0-9\-]+\.)*(?:facebook|fb|instagram|whatsapp|tiktok|tinder|snapchat|wechat|telegram|twitter|pinterest|linkedin|line|discord|teams|zoom|amazon|alibaba)\.com\.[a-z0-9\-]+\.[a-z]+",
114+
r"https?://(?:[a-z0-9\-]+\.)*(?:facebook|fb|instagram|whatsapp|tiktok|tinder|snapchat|wechat|telegram|twitter|pinterest|linkedin|line|discord|teams|zoom|amazon|alibaba)-[a-z0-9\-]+\.[a-z]+",
105115
# Common URL shorteners
106116
r"https?://bit\.ly",
107117
r"https?://goo\.gl",

social_media_analyzer/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ def main():
66
print("--- Social Media Analyzer ---")
77
print("This tool helps you analyze social media profiles and messages for potential scams.")
88

9-
platforms = ["facebook", "instagram", "whatsapp", "tiktok", "tinder", "snapchat", "wechat"]
9+
platforms = ["facebook", "instagram", "whatsapp", "tiktok", "tinder", "snapchat", "wechat", "telegram", "twitter", "pinterest", "linkedin", "line", "discord", "teams", "zoom", "amazon", "alibaba"]
1010

1111
while True:
1212
print("\nSelect the social media platform you want to analyze:")

0 commit comments

Comments
 (0)