Bitcoin Forum
May 04, 2024, 05:53:54 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: compiling from source  (Read 373 times)
rick2718 (OP)
Newbie
*
Offline Offline

Activity: 53
Merit: 0


View Profile
May 11, 2013, 01:12:51 PM
 #1

Compiling from source is not an absolute guarantee of safety... unless you read and understand all the code, but how many people can/will do that?  It is not too difficult to obfuscate at the source code level (look at the obfuscated C contest each year).

Bad binary behavior starts to get noticed quickly when people start losing something. Until then, it is unlikely the time would be spent to uncover 'issues'.
1714802034
Hero Member
*
Offline Offline

Posts: 1714802034

View Profile Personal Message (Offline)

Ignore
1714802034
Reply with quote  #2

1714802034
Report to moderator
1714802034
Hero Member
*
Offline Offline

Posts: 1714802034

View Profile Personal Message (Offline)

Ignore
1714802034
Reply with quote  #2

1714802034
Report to moderator
1714802034
Hero Member
*
Offline Offline

Posts: 1714802034

View Profile Personal Message (Offline)

Ignore
1714802034
Reply with quote  #2

1714802034
Report to moderator
"Governments are good at cutting off the heads of a centrally controlled networks like Napster, but pure P2P networks like Gnutella and Tor seem to be holding their own." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714802034
Hero Member
*
Offline Offline

Posts: 1714802034

View Profile Personal Message (Offline)

Ignore
1714802034
Reply with quote  #2

1714802034
Report to moderator
1714802034
Hero Member
*
Offline Offline

Posts: 1714802034

View Profile Personal Message (Offline)

Ignore
1714802034
Reply with quote  #2

1714802034
Report to moderator
1badbullitt
Newbie
*
Offline Offline

Activity: 9
Merit: 0



View Profile
May 11, 2013, 01:21:37 PM
 #2

There are a couple obfuscated C Code testing apps out there, that will check for possible malicious code. A simple Google search should get you on your way.
rick2718 (OP)
Newbie
*
Offline Offline

Activity: 53
Merit: 0


View Profile
May 11, 2013, 02:08:41 PM
 #3

It's not really possible to detect in any systematic way.  Suppose I have:
unsigned char obf[BUFSIZ];

then memcpy(obf, pointer-to-some-known-place, sizeof(obf));, where the 'known place'
has the ascii values I need. then a bit of pointer arithmetic can construct the file name/process name/whatever
I am looking for in a manner which would not show up via grep or strings() on the binary.

So, if I wanted to open a wallet.dat file in source it would be pretty easy to hide it from all but other
knowledgeable and interested developers.

A google search for 'obfuscated C Code testing apps' isn't going to help out.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!