Author Topic: How can I understand my System Monitored by others or not?  (Read 1142 times)

0 Members and 1 Guest are viewing this topic.

Offline hack3rcon

  • Peasant
  • *
  • Posts: 80
  • Cookies: -216
    • View Profile
How can I understand my System Monitored by others or not?
« on: September 26, 2015, 05:12:38 pm »
Hello.
How can I understand my Linux Box or Windows Box monitored by others from Local or remote network? For example, They see my Desktop or read my email?
I know an Antivirus on Windows PC can detect BackDoors or other malicious program but is it enough? Can you show me some command to find Illegal activities on Windows PC?

Thank you.

Offline blazed

  • Serf
  • *
  • Posts: 29
  • Cookies: 0
    • View Profile
Re: How can I understand my System Monitored by others or not?
« Reply #1 on: September 26, 2015, 10:34:36 pm »
You could use wireshark to check incoming/outgoing connections
Also see your CPU usage

Offline white-knight

  • Knight
  • **
  • Posts: 190
  • Cookies: 26
    • View Profile
Re: How can I understand my System Monitored by others or not?
« Reply #2 on: September 27, 2015, 12:24:20 am »
I'm not 100% sure but 

In windows you can see connections via netstat -a  in cmd or PS .  also look at processes running to see if anything odd sticks out but if you don't know what your looking for it can be confusing.

in linux   netstat -antp    and maybe  route  ..

as blazed said you can try wireshark and maybe with the right filters you might catch something .


I'm also interested what others have to say .

« Last Edit: September 27, 2015, 12:27:11 am by white-knight »

Offline Melatonin

  • /dev/null
  • *
  • Posts: 18
  • Cookies: 2
    • View Profile
Re: How can I understand my System Monitored by others or not?
« Reply #3 on: September 27, 2015, 03:52:01 am »
Wireshark and netstat are good, you can see all outgoing connections with netstat -nputw.
Also check out iftop and jnettop.
« Last Edit: September 27, 2015, 03:52:20 am by Melatonin »

Offline Greasabilly

  • Serf
  • *
  • Posts: 21
  • Cookies: 0
    • View Profile
Re: How can I understand my System Monitored by others or not?
« Reply #4 on: September 27, 2015, 06:41:06 am »
Haven't used it myself but tcpdump on linux looks like another packet analyzer you can use.

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: How can I understand my System Monitored by others or not?
« Reply #5 on: September 27, 2015, 08:06:15 am »
I use ProcessHacker to see what connects where.

Offline Trevor

  • Serf
  • *
  • Posts: 39
  • Cookies: 18
  • Coder, Reverser
    • View Profile
Re: How can I understand my System Monitored by others or not?
« Reply #6 on: September 27, 2015, 10:48:36 am »
Monitoring outbound connections using Process Explorer/Hacker should work in all cases.

However, if you have a Ring-0 rootkit lurking in the kernel, it is game over.
You cannot trust any tools for that matter.

As an instance, read on the ]Hacking Team[ UEFI BIOS rootkit, which is used to maintain persistence and hide their Remote Control Agent.

The only way to detect such malware is to monitor the network traffic via an IDS and that too from a DIFFERENT device.

For example, you can tunnel all connections through a IDS proxy, which would monitor traffic for anomalies.

Offline hack3rcon

  • Peasant
  • *
  • Posts: 80
  • Cookies: -216
    • View Profile
Re: How can I understand my System Monitored by others or not?
« Reply #7 on: September 27, 2015, 11:06:02 am »
All answers all good but Can I block all incoming connection in Windows? I can do it in Linux via iptables but how about Windows?

Offline Trevor

  • Serf
  • *
  • Posts: 39
  • Cookies: 18
  • Coder, Reverser
    • View Profile
Re: How can I understand my System Monitored by others or not?
« Reply #8 on: September 27, 2015, 11:22:54 am »
@hack3rcon:
You would use a firewall on Windows.

Offline hack3rcon

  • Peasant
  • *
  • Posts: 80
  • Cookies: -216
    • View Profile
Re: How can I understand my System Monitored by others or not?
« Reply #9 on: September 27, 2015, 04:20:28 pm »
@hack3rcon:
You would use a firewall on Windows.

For example, I must block 1-65535 ports outbound via Windows firewall?

Offline deed

  • /dev/null
  • *
  • Posts: 8
  • Cookies: 0
    • View Profile
Re: How can I understand my System Monitored by others or not?
« Reply #10 on: September 27, 2015, 04:39:09 pm »
If you block all ports you gonna have a bad time...

Offline Trevor

  • Serf
  • *
  • Posts: 39
  • Cookies: 18
  • Coder, Reverser
    • View Profile
Re: How can I understand my System Monitored by others or not?
« Reply #11 on: September 27, 2015, 05:05:20 pm »
@hack3rcon: Why would you want to block all ports ? Install a decent antivirus. You can try Comodo which has a good firewall.

If you're paranoid, air gap the machine, never ever connect to the Internet from there.

Offline hack3rcon

  • Peasant
  • *
  • Posts: 80
  • Cookies: -216
    • View Profile
Re: How can I understand my System Monitored by others or not?
« Reply #12 on: September 29, 2015, 10:08:36 pm »
If you block all ports you gonna have a bad time...

Sorry, I mean was Inbound ports.

Offline rogue.hackz

  • Peasant
  • *
  • Posts: 55
  • Cookies: 4
    • View Profile
Re: How can I understand my System Monitored by others or not?
« Reply #13 on: September 30, 2015, 06:04:25 pm »
You're running both windows & linux? Hmm...

Haven't used windows since XP days but here's what you can do on Linux.


1) Check all network connections, services that are listening or running. Turn off unused services, etc.
Code: [Select]
watch -n5 netstat -naultp
Code: [Select]
lsof -i
Code: [Select]
watch -n5 ss -al
2) Check if any of your interfaces is running in promiscuous mode (this is done if something is sniffing the network from your computer - like a backdoor or something running in your computer)

Code: [Select]
ifconfig -a | grep -i PROMISC
3) Analysing traffic using Wireshark as usual is quite important, your system utilities might be backdoored, but that won't stop wireshark from capturing and displaying network activities to and from your computer.

4) If your computer is used by more than one user you might run this to check out who is using what, etc. or who logging remotely from what IP, etc.
Code: [Select]
w -s -i -f
Code: [Select]
last
Keep in mind that all these commands need to be run as root, or root privilege otherwise it's useless. Also never install any binaries or programs outside of your distros repository unless you know what you're doing.
"The only true wisdom is in knowing that you know nothing" -Socrates

Offline hack3rcon

  • Peasant
  • *
  • Posts: 80
  • Cookies: -216
    • View Profile
Re: How can I understand my System Monitored by others or not?
« Reply #14 on: October 03, 2015, 05:30:46 pm »
Thank you.
In Linux I use iptables for blocking all incoming connections.