Information Security Stack Exchange is a question and answer site for information security professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use drupal for our site. It uses nodes that store data. We link lots of these nodes together to allow us to log jobs, customer info, invoices etc. These are linked via an addon drupal module. If I were to delete the links the entire site would be meaningless to me.

As this module is all that links the nodes together, I am thinking that from a security pov, I could create a database/app on another server and whenever drupal goes to get a linked node id, it will go via this other server (send a key and receive the correct nid in return). If the main database is stolen, the links will be meaningless and it will be basically worthless data.

Is this something that sounds viable and worthwhile?

share|improve this question

migrated from Aug 14 '12 at 23:19

This question came from our site for system and network administrators.

for Drupal related questions also check – Refineo Dec 7 '12 at 22:56
up vote 2 down vote accepted

No. I suspect this defense is probably not a great use of your time.

If you didn't have the links, the information would be hard for you to use -- hard for the good guys to use easily. That's bad for usability, because is information isn't easy to use, it probably isn't of much use to many of your users. But the bad guys aren't under those constraints. The bad guys could probably still gain a lot of sensitive information, and piece things together enough to give you a bad day.

Do you remember the story of Iranian revolutionary students who stormed the US embassy in Iran? The US residents shredded many of their documents before evacuating, but the Iranian students were still able to meticulously piece together the fragments of shredded documents into a whole, like a jigsaw puzzle. They had the time and patience to do it. Those shredded documents would have been pretty much useless to a legitimate authorized US diplomat, but they were enough for the attackers to work out a lot of sensitive information the US didn't want them to have. Security is often like that; the bad guys are willing to put in more effort to recover your data than any ordinary user of your site would be.

And in any case, if your site gets hacked, do you want to be in a position to tell the press "Oh, yeah, they got all the data, but they didn't get the links, so it's all good?" That doesn't sound like the kind of thing that is going to inspire trust among your customers. It's not a pretty picture.

So, I suggest you spend your energy elsewhere. Remember, security is a risk management effort. That means you need to prioritize where you spend your time, based upon what gives you the most security benefit for the least time, energy, and cost. I don't think this defense is a good one. Instead, I'd focus on the basics, things like application security (SDL), configuration management, network security, disaster preparation and recovery, internal education, and so forth. Most organizations have a lot of room to improve, even on the basics.

share|improve this answer
You make very good points, even if it was true that the information couldn't be used, it still wouldn't make good press. We all know if there is anything technical to say about something it'll just be lost in the rest of it. We do a lot of what you mention already but I am always looking for better processes and security so we'll reappraise it again. Thanks! – Paul Aug 15 '12 at 6:48

It would cause a performance hit. Additionally, it depends on what you are concerned about having stolen. It's possible that even if you do this, an attacker might still be able to acquire your customer list, and potentially payment information if you are storing it.

Even if the data isn't useful in your application without a relation key, an attacker would probably be quite happy with the unrelated data if that data is coherent in any way.

share|improve this answer
The most they would get from the main database would be the users name and email. Their phone numbers, addresses, assets (computers etc), invoices and even individual comments for jobs etc are all in separate nodes so actually I really don't see how it would be useful to them. That said, I was thinking about the performance impact more and I think you're right, it would be too slow, for the moment anyway. – Paul Aug 15 '12 at 6:56

Considering such threat as 0 day, it is absolutely madatory, that you make sure that when the site is compromised, the main database is not stolen. You dont also expose yourself like Mat Honan with your address and have such huge security issues, by revealing the hole and providing your website address.

This can be implemented on the basis of external auth server who will mediate security between main server and nodes.

If you could describe in more technical detail what are you doing I could draw a some example.

Authentication server is using all security mechanism as well it has limited capability to serve only as auth and password recovery service so it's not exposed to common Drupal remote exploits. Also has passwords encrypted and so on. As well it's not exposed to internet, and has more strict filtering. This way, none of the sites / databases should be technically able to serve you any data before authenticating on it, and serve only data you have access to, via API, direct DB access or OO classes. This requires sometimes updates to DB and code too, like schemas and security checks, but first is OK to make sure that the root password of MySQL or anything else is not used anywhere, and that the admin login is changed to something else, as well the administration and access page are served only with FQDN as well the backend is accessible via hidden link (so it's not visible by the most scanners).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.