Port Knocking

The place for technology related posts.

Moderator: Moderators

Post Reply
User avatar
Libra Monkee
Moderator
Posts: 6478
Joined: Wed Mar 29, 2006 11:04 pm
Location: The Ether
Contact:

Port Knocking

Post by Libra Monkee »

Anybody know anything about it?


found internets
Image

Libra Monkee- "Helping DCAWD meet its Equal Opportunity requirement since 2006."
User avatar
complacent
DCAWD Founding Member
Posts: 11651
Joined: Sun Aug 29, 2004 8:00 pm
Location: near the rockies. very.
Contact:

Post by complacent »

yup. it's cool enough I guess...


;)
colin

a tank, a yammie, a spaceship
i <3 teh 00ntz
schvin
DCAWD Groupie
Posts: 1659
Joined: Fri Nov 19, 2004 7:00 pm
Location: washington, dc
Contact:

Post by schvin »

makes me cross. i guess the obfuscation and neat factors are high, but doesn't seem scalable or usable from an enterprise perspective, so that makes me cross. i seem to be getting crotchety in my old age.
2004 impreza outback
1964 beetle
User avatar
Sabre
DCAWD Founding Member
Posts: 21432
Joined: Wed Aug 11, 2004 8:00 pm
Location: Springfield, VA
Contact:

Post by Sabre »

I used it a long time ago for a project I had. Feel free to ask questions ;)
Sabre (Julian)
Image
92.5% Stock 04 STI
Good choice putting $4,000 rims on your 1990 Honda Civic. That's like Betty White going out and getting her tits done.
User avatar
Libra Monkee
Moderator
Posts: 6478
Joined: Wed Mar 29, 2006 11:04 pm
Location: The Ether
Contact:

Post by Libra Monkee »

By knocking on certain sequence of closed firewall ports you could open a port for your connection. Does that sound right?
Image

Libra Monkee- "Helping DCAWD meet its Equal Opportunity requirement since 2006."
avriette
DCAWD Groupie
Posts: 1316
Joined: Sun Oct 01, 2006 3:48 pm
Location: Arlington, VA
Contact:

Post by avriette »

Libra Monkee wrote:By knocking on certain sequence of closed firewall ports you could open a port for your connection. Does that sound right?
"open a port" is too specific. "information could be transmitted" is more appropriate. Consider the case of two prisoners communicating by tapping a mutual wall.
rocket scientist
User avatar
complacent
DCAWD Founding Member
Posts: 11651
Joined: Sun Aug 29, 2004 8:00 pm
Location: near the rockies. very.
Contact:

Post by complacent »

schvin wrote:makes me cross. i guess the obfuscation and neat factors are high, but doesn't seem scalable or usable from an enterprise perspective, so that makes me cross. i seem to be getting crotchety in my old age.
wow, you might be a little crotchety... ;)

I think it's "cool enough" for say a warez box or that one box that you keep some tools on.

But I agree, it would not be easily deployed amongst the enterprise.
colin

a tank, a yammie, a spaceship
i <3 teh 00ntz
User avatar
ElZorro
DCAWD Founding Member
Posts: 5958
Joined: Thu Aug 12, 2004 8:00 pm
Location: USA! USA!

Post by ElZorro »

Nothing says it couldn't be deployed across an enterprise - think of it like a key, with the ports being the tumblers. Hit the tumblers right and the lock opens. You can encode this into software (great in client server applications). The problem is it is near worthless against a replay attack - if someone can sniff the traffic between the just play the sequence back and get in. If approach the server without sniffing they won't be able to get in.
Jason "El Zorro" Fox
'17 Subaru Forester 2.0XT
DCAWD - old coots in fast scoots.
User avatar
complacent
DCAWD Founding Member
Posts: 11651
Joined: Sun Aug 29, 2004 8:00 pm
Location: near the rockies. very.
Contact:

Post by complacent »

ElZorro wrote:Nothing says it couldn't be deployed across an enterprise - think of it like a key, with the ports being the tumblers. Hit the tumblers right and the lock opens. You can encode this into software (great in client server applications). The problem is it is near worthless against a replay attack - if someone can sniff the traffic between the just play the sequence back and get in. If approach the server without sniffing they won't be able to get in.
Agreed, the obfuscation is out teh window when you start coding it into software...

If you look at it as a one trick pony that only "works" as a one trick pony, you start to get a better idea of how it can be implemented and still remain "cool".
colin

a tank, a yammie, a spaceship
i <3 teh 00ntz
schvin
DCAWD Groupie
Posts: 1659
Joined: Fri Nov 19, 2004 7:00 pm
Location: washington, dc
Contact:

Post by schvin »

yeah - agree with comments.
2004 impreza outback
1964 beetle
User avatar
Sabre
DCAWD Founding Member
Posts: 21432
Joined: Wed Aug 11, 2004 8:00 pm
Location: Springfield, VA
Contact:

Post by Sabre »

ElZorro wrote:The problem is it is near worthless against a replay attack - if someone can sniff the traffic between the just play the sequence back and get in. If approach the server without sniffing they won't be able to get in.
Ah, now that isn't true! Take your key analogy (which was great!) one step further. Knowing that you are on a computer, you can now establish a out-of-band sequence that the ports should be knocked on. There are 65536 ports available (technically), so if you have a function that generates the next sequence psuedo-randomly, it doesn't matter if you sniff the traffic of the previous connection sequence, as the next time it will be a different port combination. If you knock on 5 ports before the right one opens, you have a VERY small chance that you will ever guess the right sequence (think 1 in a billion). Now if you can find the sequence, you're in with no problem... but let's hope the person that designed the system did something better than cos(x)*100 ;)
Sabre (Julian)
Image
92.5% Stock 04 STI
Good choice putting $4,000 rims on your 1990 Honda Civic. That's like Betty White going out and getting her tits done.
schvin
DCAWD Groupie
Posts: 1659
Joined: Fri Nov 19, 2004 7:00 pm
Location: washington, dc
Contact:

Post by schvin »

that's a good point... it would be pretty swank as an OPIE transport.
2004 impreza outback
1964 beetle
User avatar
Sabre
DCAWD Founding Member
Posts: 21432
Joined: Wed Aug 11, 2004 8:00 pm
Location: Springfield, VA
Contact:

Post by Sabre »

Now you're thinking in the right direction ;)
Sabre (Julian)
Image
92.5% Stock 04 STI
Good choice putting $4,000 rims on your 1990 Honda Civic. That's like Betty White going out and getting her tits done.
User avatar
ElZorro
DCAWD Founding Member
Posts: 5958
Joined: Thu Aug 12, 2004 8:00 pm
Location: USA! USA!

Post by ElZorro »

Sabre wrote:so if you have a function that generates the next sequence psuedo-randomly, it doesn't matter if you sniff the traffic of the previous connection sequence, as the next time it will be a different port combination.
Excellent. :)
Jason "El Zorro" Fox
'17 Subaru Forester 2.0XT
DCAWD - old coots in fast scoots.
Post Reply