Image
 
linkedin_logo.png rss_logo.jpg
twitter_logo.png youtube_logo.jpg
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 75 guests and 2 members online
 
Advertisement

You are here: Home arrow Ethical Hacking Discussions and Related Certificationsarrow Network Pen Testingarrow Avoiding Pentest DOOM
EH-Net
May 20, 2013, 10:24:50 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Go back to The Ethical Hacker Network Online Magazine Home Page
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Avoiding Pentest DOOM  (Read 4319 times)
0 Members and 1 Guest are viewing this topic.
tturner
Sr. Member
****
Offline Offline

Posts: 432


View Profile WWW
« on: September 24, 2012, 12:36:31 PM »

I just had a blog post I wrote published at the SANS Pentest Blog entitled Avoiding Pentest DOOM: Protecting Customer Data where I discuss several ways you may be violating NDA's or mishandling customer data along with well defined solutions for addressing these very common failings. Check it out and tell me what you think.

http://pen-testing.sans.org/blog/2012/09/24/avoiding-pen-test-doom-protecting-customer-data
« Last Edit: September 24, 2012, 12:43:07 PM by tturner » Logged

Certifications:
CISSP, CISA, GPEN, GWAPT, GAWN, GCIA, GCIH, GSEC, OPSE, CSWAE, CSTP, VCP

WIP: OSWP, GSSP-JAVA, GXPN

Udacity on hold, again. I suck.

http://sentinel24.com/blog  @tonylturner http://bsidesorlando.org
hayabusa
Hero Member
*****
Offline Offline

Posts: 1631



View Profile
« Reply #1 on: September 24, 2012, 12:56:24 PM »

Good read...  Loved the opener:

"They want you to simulate a real attacker which means you can harvest credit card numbers and sell them on carder forums, post their password hashes on Pastebin and tweet about how lamebrain they are. Right?"

I've seen too many pentesters who do NOT safeguard the customer data, before / during / after a test, and in ONE case that I can recall, they got hammered for it, in the end, because said data DID get leaked.  I think you're spot on with your recommendations.   Smiley

(Edit - in the paragraph below, I'm referring to physical copies, as well as digital)

The one thing I'd add is that, when I complete a test, I completely destroy EVERY copy I have of ALL the data, including the end report.  Once I've delivered it to the customer, whether in writing, face-to-face presentation, or BOTH, I completely remove any copy I had in my possession.  Additionally, all of my tests (where applicable) are done from VM's, which are destroyed afterwards.  If my own physical machines are used, I wipe them clean following the engagement.  The ONLY time a machine remains in existence, is if it's their own (when I'm doing whitebox tests simulating employee access, etc,) though while I won't fdisk THEIR machines, I still remove all copies of anything I've done, while using their box(es).

I make it very clear to them that they have the ONLY copies of ANY data that remains, and as such, if they require me to re-test anything, in the future, it's their responsibility to present said data to me, if in fact, re-testing 'specific' past issues is in scope.   Otherwise, I approach them as a fresh customer, for every future engagement.
« Last Edit: September 24, 2012, 12:57:58 PM by hayabusa » Logged

~ hayabusa ~ 

"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'


OSCE, OSCP , GPEN, C|EH
tturner
Sr. Member
****
Offline Offline

Posts: 432


View Profile WWW
« Reply #2 on: September 24, 2012, 02:13:20 PM »

Agreed Hayabusa, but there are instances where the contract stipulates the pentester maintain copies of the report and associated notes for a predetermined period. We do this sometimes because we get 3 or 4 months into a remediation cycle and someone has a question about a particular finding and I know of some organizations that have to do this because remediation cycles are horrendously long, think Big Pharma for instance. Pentesters can't always remember why a particular finding wound up in the report, especially if it was a less than stellar report but if they can go back to tool output or notes, packet captures, etc they can provide additional clarification around the issue ar at least provide enough context where the organization can make a conscious risk decision regarding the finding. Ideally, sufficient context goes into the report to make this a a non-issue but ops will frequently look for any reason to not have to fix whatever it is we are telling them to fix. I'd prefer it always be like you said, but the reality is the operational side of the business doesn't always feel we are on the same side. Antagonistic relationships can develop especially when you are calling someone's baby ugly or asking them to do more work.

It's probably the best idea to have the pentest firm destroy all data and require all associated notes, pcaps, etc be delivered to customer as part of the deliverable package (but not in the report). I have been known to change requirements around depending on who was conducting the test or which assets were within the scope as a conscious risk decision. (external business partner stakeholders, scope too narrowly defined that doesn't take into account other contextual activities, etc)
Logged

Certifications:
CISSP, CISA, GPEN, GWAPT, GAWN, GCIA, GCIH, GSEC, OPSE, CSWAE, CSTP, VCP

WIP: OSWP, GSSP-JAVA, GXPN

Udacity on hold, again. I suck.

http://sentinel24.com/blog  @tonylturner http://bsidesorlando.org
Andrew Waite
Hero Member
*****
Offline Offline

Posts: 928



View Profile WWW
« Reply #3 on: September 24, 2012, 02:53:33 PM »

Thanks for sharing the advice; and perfect timing, been meaning to look at improving data retention/destruction provisions, this should be a great foundation.

With regard to destroying data once report is in client possession, how do you handle client's losing/forgetting the report and then claiming you didn't fulfil contract if you can't provide deliverables down the line? It's the biggest argument I've encountered against destruction of data. I'm assuming project sign-off etc, but curious to know if there are other options I've not thought of.

And I'll apologise now, but I will be stealing Resume Generation Event for future use Smiley
« Last Edit: September 24, 2012, 02:55:12 PM by Andrew Waite » Logged

tturner
Sr. Member
****
Offline Offline

Posts: 432


View Profile WWW
« Reply #4 on: September 24, 2012, 03:14:37 PM »

With regard to destroying data once report is in client possession, how do you handle client's losing/forgetting the report and then claiming you didn't fulfil contract if you can't provide deliverables down the line? It's the biggest argument I've encountered against destruction of data. I'm assuming project sign-off etc, but curious to know if there are other options I've not thought of.

And I'll apologise now, but I will be stealing Resume Generation Event for future use Smiley

Yep Andrew, like anything else requirements may vary from engagement to engagement. Some customers will want you to retain data for a year, others may require that it never leaves the customer site, all testing done from corp owned machines and pay more to allow you to write the report onsite and providing a machine to do so.

As for the RGE line, I think that came from a DR class I took several years ago when I worked in state govt. I've used it ever since. Smiley
Logged

Certifications:
CISSP, CISA, GPEN, GWAPT, GAWN, GCIA, GCIH, GSEC, OPSE, CSWAE, CSTP, VCP

WIP: OSWP, GSSP-JAVA, GXPN

Udacity on hold, again. I suck.

http://sentinel24.com/blog  @tonylturner http://bsidesorlando.org
m0wgli
Full Member
***
Offline Offline

Posts: 248


View Profile
« Reply #5 on: September 24, 2012, 03:29:02 PM »

Interesting read, thanks.

With regards to report retention (subject to client requirements), I found the following advice from Andrew Waite useful:

Quote
From experience it can also be wise to hash and document any reports provided to clients, I've once been asked from senior management to justify a finding/recommendation that had been edited by an IT ream to support their business-political viewpoint.

http://www.ethicalhacker.net/component/option,com_smf/Itemid,54/topic,9048.msg50675/#msg50675

Although this would be mitigated by the advice already mentioned, I feel it's worth mentioning for those that may not know. When using a VM any files moved between the guest and host are stored in a temporary location on the host that doesn't clean up after itself:

http://pauldotcom.com/2012/08/penetration-testers-beware-vmw.html
« Last Edit: September 24, 2012, 04:57:24 PM by m0wgli » Logged

Security + | OSWP | eCPPT | CSTA
hayabusa
Hero Member
*****
Offline Offline

Posts: 1631



View Profile
« Reply #6 on: September 24, 2012, 04:10:33 PM »

Danged session timeouts...  yet another longer post lost...  (Retyped in wordpad, and transferred in)

@Andrew -it's signed off on by the highest level management at the customer, who is responsible for the contract negotiation, and ultimately, the pentest.  (Preferably the CEO / CIO, but if it's work being contracted below their level, then the highest level manager in the chain.

@tturner - I agree with you.  If a client explicitly requires I keep a copy of their data, so be it.  I'm not in the business of turning down business, over something like this.  I just strongly emphasize that my preference is to NOT retain ANY data.

I DO have reasons for being so adamant with my clients about this issue.  While I've NEVER had it come to a head over a pentest, or professional client data, of my own, I HAVE personally been involved with law enforcement cases, where the simple possession of digital / printed information, even remotely related to a case, was enough that law enforcement pointed fingers at an innocent party.  (Credit card fraud, child pornography case)

When I say possession of, I refer to, very literally, the sheer owership of a computer, and the fact that it COULD have been used to perpetrate a crime, with NO pre-existing evidence that it had.  Because the crime was IT-related, and the innocent party's name was even remotely involved (their credit card had been stolen, and used to open a child pornography site), I witnessed law enforcement confiscate EVERY piece of electronic equipment and media (including those that could NOT hold evidence), from them.  The innocent party was left to prove their own innocence, because law enforcement very literally had no clue what they were doing, in said investigation.  I watched the involved parties get dragged through the mud.  Even when I was brought into the investigation, by the authorities, in order to help them gather information, when I proved the party wasn't involved, they continued to hold the materials until their 'investigation' concluded.  Said investigation caused the innocent party's property to be held for almost 3 months, even when I showed, without a shadow of a doubt, that they could have had no involvement, by the end of day 3.  (I literally handed law enforcement the IP addresses and names of the real perpetrator, from ISP records, research, etc, and was later told that jurisdiction on the case, from that point on, took any and all visibility away, as to whether they arrested the real offender.  From what I have later learned from others in the law enforcement community, this isn't as uncommon as you'd hope.)

The point to my story is this...  While not all law enforcement are as anally remiss about how to investigate IT-related crimes, the less responsibility I or my company maintain, and the more that is LEGALLY left in the customer's possession / rsponsibility, the easier it is to defend, in the event of any issues.  That's not to say we STILL won't ever end up having to deal with a similar situation, nor that we absolutely won't hold data from a pentest, but it minimizes the chances of future headache, greatly, when all I's have been dotted and T's crossed, in a legally binding document.
« Last Edit: September 24, 2012, 04:12:43 PM by hayabusa » Logged

~ hayabusa ~ 

"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'


OSCE, OSCP , GPEN, C|EH
tturner
Sr. Member
****
Offline Offline

Posts: 432


View Profile WWW
« Reply #7 on: September 24, 2012, 04:21:42 PM »


Although this would be mitigated by the advice already mentioned, I feel it's worth mentioning for those that may not know. When using a VM any files moved between the guest and host are stored in a temporary location on the host that doesn't clean up after itself:

http://pauldotcom.com/2012/08/penetration-testers-beware-vmw.html

That's pretty awesome m0wgli, thanks for the share. Definitely something that needs to be considered. I'll have to check out my own machine when I get to the office. Smiley
Logged

Certifications:
CISSP, CISA, GPEN, GWAPT, GAWN, GCIA, GCIH, GSEC, OPSE, CSWAE, CSTP, VCP

WIP: OSWP, GSSP-JAVA, GXPN

Udacity on hold, again. I suck.

http://sentinel24.com/blog  @tonylturner http://bsidesorlando.org
hayabusa
Hero Member
*****
Offline Offline

Posts: 1631



View Profile
« Reply #8 on: September 24, 2012, 04:24:03 PM »

PS - also to tturner's point, he mentioned being able to go back and review packet captures, etc., and I completely agree.  In all cases where I am handing over "ALL" data to the customer, said data includes encrypted storage, containing ALL captures, etc, which were taken / utilized in the test.

&@m0wgli - agreed with tturner on the great link.  Good share!
« Last Edit: September 24, 2012, 04:42:12 PM by hayabusa » Logged

~ hayabusa ~ 

"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'


OSCE, OSCP , GPEN, C|EH
hayabusa
Hero Member
*****
Offline Offline

Posts: 1631



View Profile
« Reply #9 on: September 24, 2012, 04:47:22 PM »

Also, while on the topic of information handling, tturner should've also posted (or did you, previously in another thread and I missed it COMPLETELY) a link to the following:

http://sentinel24.com/blog/?p=134

Titled "Bad Pentest Reports Part 1"

For those who are up-and-coming, this is a good one to pay attention to.
Logged

~ hayabusa ~ 

"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'


OSCE, OSCP , GPEN, C|EH
tturner
Sr. Member
****
Offline Offline

Posts: 432


View Profile WWW
« Reply #10 on: September 24, 2012, 05:20:25 PM »

I sort of did at http://www.ethicalhacker.net/component/option,com_smf/Itemid,54/topic,9048.msg50370/#msg50370

Thanks for the repost though Smiley
Logged

Certifications:
CISSP, CISA, GPEN, GWAPT, GAWN, GCIA, GCIH, GSEC, OPSE, CSWAE, CSTP, VCP

WIP: OSWP, GSSP-JAVA, GXPN

Udacity on hold, again. I suck.

http://sentinel24.com/blog  @tonylturner http://bsidesorlando.org
hayabusa
Hero Member
*****
Offline Offline

Posts: 1631



View Profile
« Reply #11 on: September 24, 2012, 05:32:31 PM »

<grin> yep...  Completely missed it...  Roll Eyes
Logged

~ hayabusa ~ 

"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'


OSCE, OSCP , GPEN, C|EH
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 1.444 seconds with 23 queries.
 
Exclusive Deal

sansfire13_245x90_cw90.jpg
SANSFIRE 2013
June 15 - 22

5% Off w/ Code: EHN_5

SANS Deals 4 EH-Netters
5% OFF Any SANS Course in Any Format!
Coupon Code: EHN_5 Including SANS Rocky Mountain 2013 & SANS Boston 2013
Polls
Compared to this year, 2013 will be:
 
Recent Forum Topics
EH-Net News Feeds
Latest Additions
 
         
Free Business and Tech Magazines and eBooks

© 2013 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.