LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 01-03-2017, 11:48 PM   #1
Corbee
LQ Newbie
 
Registered: Jan 2017
Posts: 6

Rep: Reputation: Disabled
Mouse, keyboard, window getting hijacked by unknown hacker


I have a home computer that uses linux, for some reasons my system comes alive, the mouse clicks different apps by itself and the keyboard types cruel sadistic words and called me a shiny bald head.

To remedy this,

1 I checked 'the enable firewall' on my modem router
2 kept switching to different linux distros
3 Change the root password and user password
4 but the problem persist.

My system either
1. crashes (applications won't run, usually if I used gnome flavor)
2 or problem persist, hacker writing stuff in my pc (usually kde and generic xwindows)
3 also the hacker could disable my internet connection at times (DDOS?)
4 and even worst, hijack my browser session(email account, etc).

There is only one PC connected to the modem, no wifi, only local connection. So I'm quite sure the hacker comes from the internet.
How do I fix this?

Last edited by Corbee; 01-03-2017 at 11:50 PM.
 
Old 01-04-2017, 12:36 AM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196
It would be helpful if you could supply additional information such as your current Linux distro and version at least, which will help others to help you more efficiently.

Some information on your router would also be helpful, there have been several recent exploits reported for some models.

Also, does anyone else have physical access to this machine? When did this start and how frequently does it occur?

From the description that you have provided, the first thing to do is to disconnect the machine from the internet immediately. If you have any important data on it, make backups but consider them suspect as well.

If you want to perform any forensics on the system then keep it offline and powered off until you can organize your approach to that or turn it over to someone who can help with it.

If you simply want to clean it up and start over, then "clean up" should consist of a complete wipe of the system, reformat the hard drive and reinstall from fresh, current sources. Configure your services and firewall before connecting to the internet, and verify your router type and configuration as well.

So, to repeaat, please provide more complete information on your Linux distro, hardware and router model and configuration, and a more complete history of the exploit, and someone here with matching knowledge will try to help.
 
1 members found this post helpful.
Old 01-04-2017, 02:47 AM   #3
Corbee
LQ Newbie
 
Registered: Jan 2017
Posts: 6

Original Poster
Rep: Reputation: Disabled
My current linux is Bodhi linux 4.0.0, so far he is able to de-stabilize the system and crash cups and midori.

Router is Zyxel

I'm the only one who have physical access to the machine. It started when I brought home an infected android. At first I didn't pay attention to it until everyone in the neighborhood started to complain about their phone. Then something funny started to happen to my computer, so I cut the wifi and formatted my PC times and times again using different Linux distro, but I think it was too late, the hacker somehow had permanent access to my ip address i think.

The attack frequently occurs during the evening.

Where can I find best firewall configuration guide before connecting to the internet?
I'll give the full details of my router model once I get home.

Last edited by Corbee; 01-04-2017 at 02:54 AM.
 
Old 01-04-2017, 02:57 AM   #4
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,816

Rep: Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982
Perhaps it is in UEFI/Bios http://blog.trendmicro.com/trendlabs...arget-systems/
 
Old 01-04-2017, 09:03 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Corbee View Post
my system comes alive, the mouse clicks different apps by itself and the keyboard types cruel sadistic words and called me a shiny bald head.
i'm a little unsure as to how serious you are.
please show us (i.e. post output, screenshots etc.) what REALLY happens.

the mouse: could just be a broken mouse/touchpad.

the text: how, when, in which apps?

also, how did you install your current distro, have you done anything non-standard to it (install SW from 3rd part sources etc.)?
 
Old 01-04-2017, 10:17 AM   #6
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,143
Blog Entries: 21

Rep: Reputation: 3481Reputation: 3481Reputation: 3481Reputation: 3481Reputation: 3481Reputation: 3481Reputation: 3481Reputation: 3481Reputation: 3481Reputation: 3481Reputation: 3481
See if a port is open I guess.

http://www.yougetsignal.com/tools/open-ports/

You should get a blocked readout. After hitting check.
 
Old 01-04-2017, 11:05 AM   #7
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 668

Rep: Reputation: 190Reputation: 190
Quote:
To remedy this,

2 kept switching to different linux distros

By "switching to different linux distros", Do you mean that you wiped, formatted (especially the boot partition!), and installed a new OS on the affected machine?

If so, it is likely not coming from the computer.

When you say
Quote:
also the hacker could disable my internet connection at times
Do you mean you are connected to your network but have no internet access (which, you are correct, would likely be a DOS attack) or does your NIC get shut off?

Quote:
the hacker somehow had permanent access to my ip address i think.
Unless you pay for a static IP (pricey) from your ISP, your IP should change fairly regularly.

You mentioned it started from an infected android phone but no other details about the phone or infection.

To check for open ports try
Code:
nmap -p- yourdevicesprivateIPhere
 
Old 01-04-2017, 02:27 PM   #8
c0wb0y
Member
 
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 421

Rep: Reputation: 74
If it's even true, that's good that he let you notice about the intrusion.
 
Old 01-04-2017, 04:18 PM   #9
petelq
Member
 
Registered: Aug 2008
Location: Yorkshire
Distribution: openSUSE(Leap and Tumbleweed) and a (not so) regularly changing third and fourth
Posts: 627

Rep: Reputation: Disabled
Zyxel modem/routers have definitely been compromised. My IP provides Zyxel and although I use my own I've had about 5 emails from them giving me instructions as to how they can fix it. I notice also that Zyxel have provided at least 2 firmware updates recently.
Even though I'm not using the router I updated the firmware anyway.
If the router is supplied by your IP they should have contacted you. If it's your own then using a different router or computer, do a google check. I haven't looked but there's sure to be something on the web about it.

PS I'm not sure that the firmware updates actually address the problem but I'm not connecting the Zyxel for my isp to fix.

Last edited by petelq; 01-04-2017 at 04:29 PM. Reason: to add comment re firmware
 
Old 01-04-2017, 04:26 PM   #10
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,687

Rep: Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715
If I WANTED to cause those symptoms, I would get the bluetooth settings and keep connecting using an android app with remote keyboard/mouse features. I can just imagine some neighbor kid giggling away next door listening to you curse and taking notes.
 
1 members found this post helpful.
Old 01-04-2017, 04:32 PM   #11
petelq
Member
 
Registered: Aug 2008
Location: Yorkshire
Distribution: openSUSE(Leap and Tumbleweed) and a (not so) regularly changing third and fourth
Posts: 627

Rep: Reputation: Disabled
Quote:
Originally Posted by wpeckham View Post
If I WANTED to cause those symptoms, I would get the bluetooth settings and keep connecting using an android app with remote keyboard/mouse features. I can just imagine some neighbor kid giggling away next door listening to you curse and taking notes.
That's assuming the op always has unprotected bluetooth switched on. There is definitely a problem with suspect Zyxel routers,
 
Old 01-04-2017, 09:20 PM   #12
Corbee
LQ Newbie
 
Registered: Jan 2017
Posts: 6

Original Poster
Rep: Reputation: Disabled
Wow, that's a lot to fill in.

I just switched to Sabayon Linux, I find that if I use Linux with systemd, he easily destroys my OS, plus I read a couple of articles about systemd causing crashes.

Quote:
By "switching to different linux distros", Do you mean that you wiped, formatted (especially the boot partition!), and installed a new OS on the affected machine?

If so, it is likely not coming from the computer.
Yes, I reformatted it, so my conclusion is either bios malware or infected router.

Quote:
Do you mean you are connected to your network but have no internet access (which, you are correct, would likely be a DOS attack) or does your NIC get shut off?
Yes, I'm connected to my internet, but couldn't access my internet regardless how many times I restart it. I don't think NIC got shut off because there were notification icon showing that I'm trying to connect.

Quote:
Unless you pay for a static IP (pricey) from your ISP, your IP should change fairly regularly.

You mentioned it started from an infected android phone but no other details about the phone or infection.

To check for open ports try
I know that my ip changes every reset, but I think the connection to the dhcp server is static. There was a time a technician showed it to me on the router's admin dashboard, that the ip is suppose to be static when inside the ISP's network.

The android is a long story, it's got all the symptoms of a compromised phone, choppy communication, applications opening by itself, camera all of the sudden running, phone running very hot. People around my neighborhood also reported the same symptoms and thought their phone is broken. From what I read, even factory reset doesn't help my phone. I'm not sure how they had it, but I suspect it was the same hacker.

I guess I'll try to do an nmap.

Quote:
Im a little unsure as to how serious you are.
please show us (i.e. post output, screenshots etc.) what REALLY happens.

the mouse: could just be a broken mouse/touchpad.

the text: how, when, in which apps?

also, how did you install your current distro, have you done anything non-standard to it (install SW from 3rd part sources etc.)?
If I'm disconnected from the internet my system appears stable, mouse runs well and doesn't just open a random text editor to MOCK SOMEONE AND CALL HIM A SHINY BALD HEAD so I'm pretty sure it's that nasty hacker.

No, I downloaded from official sources.

Quote:
Perhaps it is in UEFI/Bios http://blog.trendmicro.com/trendlabs...arget-systems/
I tried resetting the BIOS, but problem persists. I don't think Linux will run with secure boot enabled. Maybe it's too late for my mobo.

I'm not sure if iptables is effective, I tried using puppy linux and running the firewall, but had the same symptoms.

Is port the only thing I should worry about?

Quote:
Zyxel modem/routers have definitely been compromised. My IP provides Zyxel and although I use my own I've had about 5 emails from them giving me instructions as to how they can fix it. I notice also that Zyxel have provided at least 2 firmware updates recently.
Even though I'm not using the router I updated the firmware anyway.
If the router is supplied by your IP they should have contacted you. If it's your own then using a different router or computer, do a google check. I haven't looked but there's sure to be something on the web about it.

PS I'm not sure that the firmware updates actually address the problem but I'm not connecting the Zyxel for my isp to fix.
It came together with my ISP, but I think they won't mind if I update the firmware I think this is my best bet.

Quote:
If I WANTED to cause those symptoms, I would get the bluetooth settings and keep connecting using an android app with remote keyboard/mouse features. I can just imagine some neighbor kid giggling away next door listening to you curse and taking notes.
That's assuming the op always has unprotected bluetooth switched on. There is definitely a problem with suspect Zyxel routers,
My router doesn't have a bluetooth. But I'm curious, how powerful is android as a hacking utility?

Last edited by Corbee; 01-04-2017 at 09:28 PM.
 
Old 01-04-2017, 09:40 PM   #13
c0wb0y
Member
 
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 421

Rep: Reputation: 74
That sounds some pretty serious stuff going on there. Get a new router with an updated firmware. Reset the CMOS.

If your new Linux install seems to get pwned everytime, you really need to throw the router away, as it is very likely that the routes and DNS on it are poisoned. You must have antagonized someone really that bad.
 
Old 01-05-2017, 07:23 AM   #14
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,687

Rep: Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715
ON other posts I advised some simple anti-malware steps: ClamAV, hardening, rootkit detection. Some there banged on the "linux does not need that, it is immune" drum. I wish I could invite them to read this and reconsider their stand.

If you can bring up machines off-network, install protection, restrict needed services and eliminate those not needed, install protection software, configure your system and only THEN connect it to network you can avoid many problems. Even when under serious threat.

That ISP may have had their equipment infected and used in the attacks. I would not assume ANYTHING is clean and safe until you verify it for yourself. That means assuming some level of threat, and protecting against it at every step. If that sounds paranoid, consider yourself in a position where being paranoid predicts your (network) survival.

Were we neighbors, I would offer more help. Being able to visit with some secure hardware and IDS software on CD would be a big help about now.
 
2 members found this post helpful.
Old 01-05-2017, 08:07 AM   #15
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,676
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
No, this guy obviously either has an open port leading to X-windows, or, more likely I think, he does have a malicious neighbor playing with Bluetooth. And, if his router has firewall capability, it is obviously turned off.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
hp wireless keyboard & mouse, keyboard works, mouse do not work not working john hughes Linux - Desktop 2 04-04-2016 11:00 AM
keyboard mouse problem in x window pradeepdrajmane Linux - Newbie 3 12-15-2009 01:24 PM
Get text under mouse cursor in any window or window screen samuellawrence Linux - Desktop 1 08-13-2009 08:20 AM
xterm keyboard doesn't work if a mouse is over the window on the latest Fedora 10. Vaxon Linux - Desktop 2 06-05-2009 03:06 PM
Problem with mouse and Keyboard when in X Window Jacky Quah Fedora 2 01-31-2006 12:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration