Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Preventing UEFI from internet access?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Leonardo.b
Guru
Guru


Joined: 10 Oct 2020
Posts: 308

PostPosted: Sat Dec 26, 2020 8:04 pm    Post subject: Preventing UEFI from internet access? Reply with quote

This question is mainly adressed to the paranoid guys I know frequent the forum - hello people.
You are warned: I know nothing about this, and probably my question is idiot (but harmless).

So; is there a way to prevent UEFI from connecting to the internet?
Can I suppose that inside the bios .bin there is something similar to the firmware blob used by my wifi chipset?
Can I fulfill that region with zeroes and reflash the bios?

Oh - that probably doesn't make any sense.

Don't try.
Leonardo.
Back to top
View user's profile Send private message
pa4wdh
l33t
l33t


Joined: 16 Dec 2005
Posts: 910

PostPosted: Sat Dec 26, 2020 9:24 pm    Post subject: Reply with quote

UEFI bins are usually signed, so reverse engineering and modifying has a low chance to work.

Some random ideas:
If you're really paranoid, make sure you have a motherboard which can use an open source bios. I don't have any experience with this, but i know there a just a few motherboards which are supported.

An other way is to verify if your UEFI is actually using the internet, so you need an other PC and tools like tcpdump or wireshark to analyze the traffic.

If your UEFI wants to access the internet it needs configuration (IP, gateway, etc) and it will probably use DHCP to obtain that. Disabling DHCP and using static configuration where you need internet access might be a nice workaround.
_________________
The gentoo way of bringing peace to the world:
USE="-war" emerge --newuse @world

My shared code repository: https://code.pa4wdh.nl.eu.org
Music, Free as in Freedom: https://www.jamendo.com
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1555
Location: Montréal

PostPosted: Sat Dec 26, 2020 11:28 pm    Post subject: Reply with quote

I think that the UEFI/BIOS is mainly programmed by the compagny who own it. If you want modifications to this microcode only them can help you. You can look to Welcome_to_coreboot to know if your material is supported, if yes it can give you an alternative to your UEFI/BIOS constructor. One thing who can be done right now is to disable the right of the UEFI/BIOS to boot on any network card and disable the wake on land feature too in it's configuration setup.
_________________
Paul
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Sun Dec 27, 2020 3:26 am    Post subject: Reply with quote

The only way to be certain is to be in control of the router/firewall it connects to.
Back to top
View user's profile Send private message
Leonardo.b
Guru
Guru


Joined: 10 Oct 2020
Posts: 308

PostPosted: Thu Dec 31, 2020 6:24 pm    Post subject: Reply with quote

It took me some time to understand what DHCP, IP, gateway etc mean...
pa4wdh, I like your random ideas. The last one is especially evil.
Anyway, managing the router/firewall sounds like the most solid solution.

Now I think I'll play with this.
Do you know about an "Iptables Made Simple" lecture for a complete beginner?
I am reading the pietinger guide on the German forum right now.

Iptables seem a bit a mess. I like PF syntax much more.
Does BSD Gentoo still breath?

And let me a last question.
What does happen if I plug my laptop directly in the ethernet cable connected to the road? The one plugged in the WiFi router, right now.
Is the home router's firewall the only thing that prevent all the world wide web to come into my laptop?

Thanks for everything,
Leonardo
Back to top
View user's profile Send private message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1932

PostPosted: Thu Dec 31, 2020 6:56 pm    Post subject: Reply with quote

Consider using nftables instead of iptables, much easier to follow.

https://wiki.gentoo.org/wiki/nftables
https://wiki.archlinux.org/index.php/nftables
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1369
Location: EU or US

PostPosted: Thu Dec 31, 2020 7:34 pm    Post subject: Reply with quote

Quote:
Is the home router's firewall the only thing that prevent all the world wide web to come into my laptop?

Router does NAT, it is not exactly firewall, but yes. The whole IPv4 address space is constantly scanned by bad guys for open ports. If an open port is found then it is attacked.
Back to top
View user's profile Send private message
Leonardo.b
Guru
Guru


Joined: 10 Oct 2020
Posts: 308

PostPosted: Thu Dec 31, 2020 8:15 pm    Post subject: Reply with quote

Ook.
This seem something I should really take care about.
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 3007
Location: Edge of marsh USA

PostPosted: Fri Jan 01, 2021 4:19 am    Post subject: Reply with quote

Not necessary to make light of your router's NAT. If you don't have open ports via your router from the Internet to your PC, you should be invisible. If you do open ports, know how to protect them.

Check them: https://www.grc.com/shieldsup
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
Leonardo.b
Guru
Guru


Joined: 10 Oct 2020
Posts: 308

PostPosted: Sun Jan 03, 2021 3:49 pm    Post subject: Reply with quote

Good. It is interesting.
I feel a bit like this now: https://imgs.xkcd.com/comics/fixing_problems.png
But it's probably normal. Swim or drown - it's what I say.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum