Jun 17 2013

please sign here

This post has nothing whatsoever to do with the usual topics I cover here, but this is my blog so hey I can write what I like.

My family has a proud tradition of working in the UK public sector. Despite multiple machinery of government changes by administrations of both major political colours thoughout my career I somehow managed to avoid being pushed into a career path not of my choosing. My wife still, just, retains her public sector status. One of my younger brothers worked for two major Departments of State before voluntarily leaving for what he saw as greener pastures (I think he meant more money – but that was at least his choice). Another of my younger brothers has worked for some years in the Probation Service – and he is, rightly, very proud of that. However, the current administration is determined to end his public service career by privatising (lovely word) the Probation Service. God forbid it should be bought by G4S.

He would like anyone and everyone concerned at this prospect to sign this E-government petition. Not for him, but for the continued high quality of rehabilitation of offenders based on need, and not on expenditure reduction targets.

Please do so.

Permanent link to this article: http://baldric.net/2013/06/17/please-sign-here/

Jun 17 2013

trivial traffic bump

I normally get around 1000 to 1300 hits a day (or 32,000 to 40,000 per month) on trivia. Not a huge hit rate, but consistent and on a slight upward trend over the past year. Today I have seen over double that – most of it this morning. Between 05.30 and 07.00 local time my logs show nearly 1800 hits from one IP address alone consistently knocking on the door looking for login capability. That address comes from a netblock allocated to CHINANET’s fujian province network.

Please stop it. Whoever you are. (I may have to install fail2ban, much as I dislike that idea.)

Permanent link to this article: http://baldric.net/2013/06/17/trivial-traffic-bump/

Jun 16 2013

prism opt-out

In all the noise on the ‘net about the alleged NSA PRISM program, this new site offers an amusing, but nonetheless useful, list of free alternatives to proprietary software. In part the site sort of misses the point about PRISM, but it is still good to see someone taking the time to point out that you don’t have to use closed, proprietary software when there are excellent free alternatives. Be aware, however, that some of the listings point to proprietary /services/ (e.g. startpage) which are flagged as such.

Permanent link to this article: http://baldric.net/2013/06/16/prism-opt-out/

Jun 15 2013

Edward Snowden

The revelations of the past week or so have been interesting to me more for what they haven’t said, than what they have. There are a few points arising from Snowden’s story which puzzle me and which don’t seem to have been addressed by the mainstream media – at least not the ones I read.

And there is more than a whiff of Captain Renault in the reaction in some quarters to the story. “I’m shocked, shocked, to find that the NSA is spying on the internet.” No shit Sherlock. What do you think they do? That’s their job. Go and read their publicly avowed Mission Statement. Their vision is “Global Cryptologic Dominance through Responsive Presence and Network Advantage.” Key words – “Global” “Network Advantage”. Nor should anyone be surprised to learn that the NSA and GCHQ share intelligence. The two Agencies are extremely close and have been ever since the UKUSA agreements initially forged in 1943, 1946 and 1948. Richard J Aldrich devotes a whole chapter of his book on GCHQ to the UKUSA agreements. That chapter quotes Admiral Andrew Cunningham (Chief of the Naval Staff in 1945) as saying “Much discussion about 100% cooperation with the USA about SIGINT. Decided that less than 100% cooperation was not worth having.” David Omand said in his Guardian article of 11 June that he was “delighted at this evidence that our transatlantic co-operation extends in this hi-tech way into the 21st century, when so much communication is carried on the internet.” (Though he couldn’t resist the opportunity to plug a greater UK intercept capability as proposed by the draft Communications Data Bill, saying “It would be good, nevertheless, if the UK security authorities were able to identify directly themselves more of the traffic of terrorists and serious criminals that threaten us, and I hope amended interception legislation will be presented to parliament soon.”)

And again, nor should anyone be surprised that the NSA has close links with major internet focused companies such as Google, Microsoft and Facebook. Think about it. Facebook alone is a spooks wet dream. Google has vast amounts of information about its users. If you use an android smartphone, that information also includes real-time geo-location information.
nsa-tracking

Of course NSA are going to seek access to that resource – the only question is how they will do that.

All the companies named in the initial Guardian articles denied that they allowed access in the way claimed by Snowden. But here again, don’t be surprised by such denial. It seems highly probable to me that any US company asked such questions would be likely to deny that they had done anything illegal. And bear in mind that any company served a “National Security Letter” (as is used primarily by the FBI seeking information on individuals from banks, internet and telecommunication companies etc.) is prohibited by law from telling anyone about it. Inevitably then those companies are going to be a little reticent when quizzed by UK journalists about their relationships with any intelligence agency. Furthermore. as Duncan Campbell says in his Register article, it is hardly surprising that all nine companies deny they have ever heard of PRISM. Why should they have heard of it if that is simply the internal classified name for the program?

Snowden strikes me as intelligent, rational, thoughtful, resourceful, and, within the framework of his apparent view of the world, probably well meaning. Certainly he has managed to achieve one of his proclaimed objectives in that he has provoked discussion of how Intelligence Agencies should act in today’s networked world. Whether you think he is traitor or hero will depend on your own personal take on what a mature democracy should be prepared to do in the name of protecting its citizens. Personally I welcome the debate but regret the way it has been initiated.

As I said above, some aspects of this story puzzle me. Snowden is, or rather was, reportedly a sysadmin working for Booz Allen Hamilton on contract to NSA. (He calls himself an “Infrastructure Analyst” but lists a series of roles which seem to be focused on network and systems management). Moreover, he had only been working for Booz Allen for a short time, having previously been employed by Dell (though still working at the Agency). He obviously had TS clearance, and as a sysadmin would have had extensive access to NSA infrastructuure and assets. Now I’ve been a sysadmin and the view such an administrator has of IT systems is very different to the view provided to users of those systems. The sysadmin’s view will be dominated by access to logs, audit systems, monitoring and control systems, backup and recovery systems, file and device management systems, security controls and so on. The sysadmin’s tools will not normally provide a view of the data held on the systems in quite the same way as that provided to the system’s users. A system user on the other hand will have a desktop providing access to the applications he or she needs to do his or her job. Those applications will give a view of the data which makes sense in the context of that person’s job.

In an organisation like the NSA, I would expect strict role based access control systems to be in place. I would also expect there to be extensive auditing and monitoring systems enforcing those controls. At a trivial level, any user without authority to use a particular system (or see the data it holds) would not even be provided with the desktop tools to allow them to even know the system exists. Where they do have access to a particular system, that access should be granular with a strict need to know ruleset applied. Furthermore, any attempted access to systems by persons without the privilege granted by the need to know should set off all sorts of alarms and should result in that person having an interesting discussion with either their line management or internal security. The same principle should apply to those staff with the most privileged access – the system administrators. Whilst a sysadmin on a TS system may need to have fairly extensive low level access to the operating system and file structure, there is no need for that admin to have the same kind of view of the data on that system as is provided to say an intelligence analyst. So whilst the admin may be able to copy, move, delete, backup, recover files etc, he or she has no need to see the contents of those files in the way the system user does. Snowden says in his interview that as a sysadmin he saw so much, and so much more than a normal user would over the course of his or her career that he felt compelled to expose what the NSA was doing. I find that odd.

To give an overly simplistic example, an analyst may use a system which allows him or her to compare high resolution photographic images over time. The sysadmin managing that system may not need routine access to the application which renders those images on screen in quite the same way. So any attempt by the admin to look at the data in the same way as the analyst does should be an auditable event which should be logged. And any and all attempts to copy such data should similarly be an auditable event. Moreover, the staff monitoring the audit controls should be completely separate from the administration team. On a highly secured system it should not be possible for a sysadmin to scan though files and copy them without someone somwehere being alerted to that fact and asking questions. Furthermore, the systems available to the sysadmin should not even provide the capability for off-line copies to be made. Snowden reportedly copied the files he has released to a USB memory stick. I assume that USB memory sticks (or any other portable removable media) are not permitted on NSA premises, but since Bradley Manning seemed to use a similar device to remove files from US Defence systems I think we can assume that the policy is a little lax. I confess to being surprised that the systems in use even provide USB access. But since it seems that they do, then I would expect that any and all USB device insertions would be auditable events with a high alerting level. It seems they weren’t – or at least no-one followed them up.

This is made even more puzzling in my view by the fact that Snowden professed in his interview to have complained openly in the past about his view that what he was seeing constituted “abuses” of power and “wrongdoing”, He even said “the more you talk about this, the more you are ignored”. So we have here an individual who cares deeply about democratic accountability, who is openly critical of what he calls abuses of power and who has TS clearance and system level access to highly classified systems which do not seem to prevent off-line copying and which furthermore do not seem to have any meaningful auditing in place. That says something interesting about the NSA’s security policies and vetting procedures. Given that he has only recently been recruited by Booz Allen Hamilton and that in the process he seems to have retained his TS clearance, that also says something about the NSA’s attitude towards its outside partners’ processes.

What I also find puzzling is that Snowden apparently told his management that he was taking some leave (for treatment for recently diagnosed eplilepsy) and then simply boarded a plane for Hongkong where he met the journalist he had previously contacted over a “secure route” and gave his interview.

That series of events – poor vetting, lax security policies, poor audit and control, and failure to spot a nascent whistleblower’s contact with journalists, sits oddly with the assertion that the NSA is all seeing and all powerful and must make some people feel very uncomfortable. On the other hand, it may make some others feel very much more relaxed.

I look forward to the story developing further.

Permanent link to this article: http://baldric.net/2013/06/15/edward-snowden/

Jun 13 2013

microsoft windows is conspicuous by its absence

At DigitalOcean – or so says Netcraft in its latest write up on their astonishingly fast rise over the last six months. Apparently, in December 2012, DigitalOcean had just over 100 web-facing computers whilst in June 2013, Netcraft found more than 7,000. That is some growth.

But I’m not surprised. I make no apology for mentioning DigitalOcean here again. They have provided me with solid, astonishingly fast servers at an equally astonshingly low cost since I first trialled a tor node with them back in January. Better still, they have continued to allow me to burn through around 10 TiB of traffic every month on that node ever since without so much as blinking.

That sort of customer dedication explains why they are growing so fast. That and the focus on linux VMs of course.

Permanent link to this article: http://baldric.net/2013/06/13/microsoft-windows-is-conspicuous-by-its-absence/

Jun 12 2013

blimey that was quick

The cable tester I ordered at around 17.00 yesterday arrived in this morning’s post. And jolly good it is too for such a ridiculously cheap item. As expected, the instructions are amusing but pretty clear for all that. It is easy to use and feels fairly robust, despite the price.

Now the results. I am an idiot. On testing it turns out that there is nothing wrong with the RJ45 coupler I blamed earlier. All the pins are correctly wired straight through. What /was/ at fault was one of the two cables I had joined with that coupler. One was fine, the other was only wired at 1,2,3 and 6 (so two pairs, not four as required by 1000baseT – and as pointed out by David). When I removed the coupler I had also removed the offending cable and ended up blaming the wrong item.

In my defence I plead poor eyesight exacerbated by poor ambient lighting underneath my desk. That is why I did not spot the incorrect wiring at the time.

Ahem.

Permanent link to this article: http://baldric.net/2013/06/12/blimey-that-was-quick/

Jun 11 2013

Emails from PayPal will always address you by your first and last name

Except when they don’t.

I have just received a wonderful email from paypal headed “Tim Harrison, your monthly activity is now ready to view online.”

Way to go guys. That really inspires confidence.

Permanent link to this article: http://baldric.net/2013/06/11/emails-from-paypal-will-always-address-you-by-your-first-and-last-name/

Jun 11 2013

blimey that is cheap

cat-5-cable-tester
David’s comment to my post about my gigabit ethernet upgrade prompted me to look for a cheap LAN tester so that I could check continuity through the RJ45 coupler that had caused me difficulty. It would also be handy to be able to check the box full of old patch cables that I seem to have accumulated so that I don’t get caught out again.

I found this thing on ebay in minutes, and for the price (£2.49) it was just irresistible. I’m willing to bet the manual will be interesting reading though.

Permanent link to this article: http://baldric.net/2013/06/11/blimey-that-is-cheap/

Jun 10 2013

PRISM – we had it first

I can exclusively reveal that the UK government had a PRISM database long before those upstarts in the USA.

In the late 1970s I worked in the Statistics Division of what was then the UK Civil Service Department. We used a database of Civil Service personnel called PRISM (Personnel Record Information System for Management). I used to interrogate the database (housed on an ICL 1904S at Chessington Computer Centre) using a SQL like language called PERL (PRISM Extraction and Retrieval Language).

To those worried about the new US version I can only say, don’t be. The database itself was crap and the interrogation language worse. I cannot believe that the NSA will have improved it that much. (Well, they may have boxes slightly faster than a 1904, but hey….)

Permanent link to this article: http://baldric.net/2013/06/10/prism-we-had-it-first/

Jun 10 2013

slow gigabit ethernet

I have been making some changes to my domestic network of late which I will write about later. However, one of the main changes has been an upgrade from 10/100 switches to gigabit – mainly to improve throughput between my central filestore and desktop machines. For cosmetic reasons (and to keep my wife happy) I try to avoid having cat 5 cables strung around the place and most of them are hidden behind bookcases, furniture or soft furnishings. Lengthier cabling between my study (which houses the routers) and other rooms is catered for either by wifi or by ethernet over powerline. Both of these, of course, run at much lower speeds than even my existing 10/100 cabling so they remained unchanged.

However, my main machines are all housed in the one room (my study) and it was here that I wanted to improve file transfer speeds. I was therefore more than a little disappointed (and puzzled) to find that replacing my old 10/100 Mbps Netgear 8 port switch with a TP-Link Gigabit switch made no difference whatsoever. At first I was inclined to blame myself for buying a TP-Link device when I had previously had a poor experience with their products, but realistically I could not believe that performance should be that bad. The best connection speed I saw in a straight file transfer over FTP between my new file server and my desktop was 9 MB/s. Now a gigabit switch has a theoretical throughput of 125 MB/sec – call it 95-100 MB/sec after allowing for overheads and transmission inefficiencies. But 9 MB/s? Hell that is way too low and looks more like the rate I would expect to see on a 100 Mbps connection.

After some head scratching I decided to pull out all the cabling between the two machines in question and the new switch. I found something I had forgotten was there – a CAT 5 RJ45 connector joining two separate lengths of cable into one. I had used that some long time ago when the cable run between my desktop and the old switch wasn’t long enough to stretch the full distance. By re-siting the switch (which because of my architectural changes no longer needed to be sited so far away) I could remove the junction and simply use two clean cable runs between the switch and the desktop and server. Bingo 89-92 MB/s throughput.

The offending object (below) has been consigned to the bin. But I confess to being puzzled as to why a single dumb connector should have had such an adverse impact over such a comparatively short cable run.

rj45-coupler

Permanent link to this article: http://baldric.net/2013/06/10/slow-gigabit-ethernet/

Jun 10 2013

Iain Banks

I first met Frank (the protagonist and narrator in “The Wasp Factory”) in about May or June 1990. I had taken my bike (then an FJ1200) in to the dealer for a routine service and tyre change and had wandered in to a local newsagent to pick up a magazine or two to read whilst I was waiting. On impulse I bought a copy of Iain Banks’ first novel after reading the intriguing cover notes. I read it in one sitting and finished it before the bike was ready.

That same copy was passed around a bunch of friends with whom I shared a holiday in southern France later that summer. No-one, but no-one could put it down once they had started it, and equally no-one could really believe what they had just read.

Banks went on to become one of the greatest writers of his generation, despite “The Wasp Factory” being rejected by multiple publishers before finally seeing the light of day in 1984. Tragically he died on Sunday 9 June merely a couple of months after he had announced publicly that he had inoperable cancer of the gall bladder. He was only 59 years old.

Permanent link to this article: http://baldric.net/2013/06/10/iain-banks/

May 29 2013

another good reason not to buy one

Back in November 2011 I wrote about the TP-Link TL-SC3130G IP camera. I had some trouble getting that device to work properly over wifi so I returned it and got my money back.

Today, Core Security released an advisory about this device (and several others from TP-Link) about a remotely exploitable vulnerability arising from “hard-coded credentials” (i.e. a manufacturer installed back-door). The advisory says, inter alia:

7.1. *Hard-Coded Credentials in Administrative Web Interface*

[CVE-2013-2572] TP-Link IP cameras use the Boa web server [1], a popular tiny server for embedded Linux devices.

‘boa.conf’ is the Boa configuration file, and the following account can be found inside:

/—–

# MFT: Specify manufacture commands user name and password MFT manufacture erutcafunam

—–/

This account is not visible from the user web interface; users are not aware of the existence and cannot eliminate it. Through

this account it is possible to access two CGI files located in ‘/cgi-bin/mft/’:

 

1. ‘manufacture.cgi’

2. ‘wireless_mft.cgi’

The last file contains the OS command injection showed in the following section.

7.2. *OS Command Injection in wireless_mft.cgi*

[CVE-2013-2573] The file ‘/cgi-bin/mft/wireless_mft.cgi’, has an OS command injection in the parameter ‘ap’ that can be

exploited using the hard-coded credentials showed in the previous section:

/—–

username: manufacture

password: erutcafunam

—–/

Nothing suspicious about that at all.

Permanent link to this article: http://baldric.net/2013/05/29/another-good-reason-not-to-buy-one/

Older posts «