Skip to content

Commit 1417aee

Browse files
feat: Add support for more platforms and email analysis
This commit further expands the social media analyzer tool to support a wider range of platforms and introduces email analysis capabilities. The following platforms have been added: - YouTube - Skype - VK - Reddit - Email The changes include: - Updating the platform list in `main.py` to make the new platforms and email analysis selectable. - Adding legitimate domains for the new platforms to `heuristics.py` and updating the suspicious URL patterns. - Providing platform-specific advice for the new platforms in `fake_profile_detector.py`. - Adding specific advice for analyzing emails, focusing on sender details and content.
1 parent 2100869 commit 1417aee

File tree

4 files changed

+34
-3
lines changed

4 files changed

+34
-3
lines changed
205 Bytes
Binary file not shown.

social_media_analyzer/fake_profile_detector.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,32 @@
8282
"Verify the seller's credentials, such as their 'Gold Supplier' status and business license.",
8383
"Be cautious of prices that are significantly lower than the market average.",
8484
"Use Alibaba's Trade Assurance for secure payments and to protect against fraud."
85+
],
86+
"youtube": [
87+
"Be wary of comments with suspicious links, especially on popular videos.",
88+
"Check the 'About' page of a channel for contact information and creation date.",
89+
"Look for channels with high subscriber counts but low video views or engagement."
90+
],
91+
"skype": [
92+
"Be cautious of contact requests from people you don't know.",
93+
"Never send money or share personal information with unknown contacts.",
94+
"Scammers may impersonate Microsoft or Skype support to gain access to your account."
95+
],
96+
"vk": [
97+
"Be suspicious of profiles with very little personal information or photos.",
98+
"Check for a large number of 'friends' but low engagement on posts.",
99+
"Be wary of messages with links to third-party sites, especially for games or prizes."
100+
],
101+
"reddit": [
102+
"Check a user's post and comment history for signs of spam or bot-like activity.",
103+
"Be cautious of unsolicited private messages with investment opportunities or suspicious links.",
104+
"Look at the age of the Reddit account (cake day) and their karma score."
105+
],
106+
"email": [
107+
"Carefully examine the sender's email address for any misspellings or unusual domains.",
108+
"Be suspicious of emails that create a sense of urgency or pressure.",
109+
"Never click on links or download attachments from unsolicited or unexpected emails.",
110+
"Check for generic greetings like 'Dear Customer' instead of your name."
85111
]
86112
}
87113

social_media_analyzer/heuristics.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
"zoom": ["zoom.us"],
2222
"amazon": ["amazon.com"],
2323
"alibaba": ["alibaba.com"],
24+
"youtube": ["youtube.com", "youtu.be"],
25+
"skype": ["skype.com"],
26+
"vk": ["vk.com"],
27+
"reddit": ["reddit.com", "old.reddit.com"],
28+
"email": [],
2429
"general": ["google.com"]
2530
}
2631

@@ -110,8 +115,8 @@
110115
# These patterns aim to catch URLs that impersonate legitimate domains.
111116
SUSPICIOUS_URL_PATTERNS = [
112117
# Impersonation using subdomains or hyphens
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]+",
118+
r"https?://(?:[a-z0-9\-]+\.)*(?:facebook|fb|instagram|whatsapp|tiktok|tinder|snapchat|wechat|telegram|twitter|pinterest|linkedin|line|discord|teams|zoom|amazon|alibaba|youtube|skype|vk|reddit)\.com\.[a-z0-9\-]+\.[a-z]+",
119+
r"https?://(?:[a-z0-9\-]+\.)*(?:facebook|fb|instagram|whatsapp|tiktok|tinder|snapchat|wechat|telegram|twitter|pinterest|linkedin|line|discord|teams|zoom|amazon|alibaba|youtube|skype|vk|reddit)-[a-z0-9\-]+\.[a-z]+",
115120
# Common URL shorteners
116121
r"https?://bit\.ly",
117122
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", "telegram", "twitter", "pinterest", "linkedin", "line", "discord", "teams", "zoom", "amazon", "alibaba"]
9+
platforms = ["facebook", "instagram", "whatsapp", "tiktok", "tinder", "snapchat", "wechat", "telegram", "twitter", "pinterest", "linkedin", "line", "discord", "teams", "zoom", "amazon", "alibaba", "youtube", "skype", "vk", "reddit", "email"]
1010

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

0 commit comments

Comments
 (0)