Showing posts with label Strategies. Show all posts
Showing posts with label Strategies. Show all posts

Monday, March 11, 2013

The Whack-A-Mole Strategy case study

The Whack-A-Mole strategy is pretty much exactly as it sounds.  It's a reactive strategy where you wait for a problem or issue before attempting to deal with it. This is opposed to a "proactive" type strategy where you attempt to predict the problem before hand and deal with it in a way that prevents it occuring.

The ideas of "Proactive" and "Reactive" seem to often be cast in terms of "Proactive is good" and "Reactive is bad".  However there are lots of scenarios where this is neither true nor efficient.

My current problem is to update a group of students from using one document based data entry form to an updated version to refelect both changes in the course and changes in the data retention requirements.  Simply by their nature and some pre-exisiting use of the old form version, I reasonably expect some to not immediatly comply with the request, no matter how its delivered.

The proactive solutions that have been floated are:

1) Deliver the upgrade message in such strong terms that no-one will even consider not complying.
2) Build the system to cope with multiple versions of the data entry form and accept that they will not comply. 

As you can see, the cost of proactivly solving the problem is unpleasant in both cases.. because mostly the problem is "people factors" rather than a technical issue. I could implement both solutions, but they lead to bad places both technically and personally.  So, the best solution is to politely ask all the students to update their forms, give them a short cut-over period and then use the whack-a-mole strategy to individually handle any students who have problems with the upgrade. 

Another benefit of this solution is that we also learn exactly what sort of problems people are having with the new system (if any) and that can inform us about either bugs or unexpected "people factors" without the students feeling like they are at fault.

And everyone sleeps well...

ViolatorWare Software

http://www.ghacks.net/2013/03/05/beware-hoverzoom-extension-for-chrome-turns-evil/


This article talks about a Chrome extension that has "turned evil".  This is a strategy that I have been thinking about for some time.  I think its probably only the tip of the iceberg for this one being found out.

This highlights the weakness in reputation based systems with incomplete review mechanisms. This extension, like so many other products that have evolved from good to bad start out as a useful tool, then either cease to be useful or outright implement "features" that the user neither expected nor finds beneficial to them.

The big problem is always that the ecconomic model for "free" software puts pressure on the developer to pour in their time and energy while indirectly seeking some return. (commonly called "monitorisation"... or "selling out") In the grand scheme of things this is the tragedy of all great "free" software... eventually it becomes too expensive to remain "free".

Even the great FOS systems have all evolved mechanims to fund their existance.  Donantions, "Support", sponsors, selling swag, advertising, crowdfunding... etc.  None are truly "free".

So whats my point today?

The point is that there will be pressure from the dark side of monitorization to take advantage of market position and trust to modify the software to do "other" things.  This is kind of a trojan horse strategy... but its really more like a "betrayal of trust" strategy.  I like the term "ViolatorWare". lol.

The point I made earlier about the tip of the iceberg needs to be expanded.  If you think about a popular extension for a browser with an installed base of some 500,000 that has a reasonable upgrade cycle.  In the event that it was possible to insert a backdoor into the package and have it go undetected for some period of time (assume a competent designer with a high level of sophistication) it should be possible to deploy that exploit to a large number of the users before the flag went up.

This makes these kind of extensions a really attractive mechanims to deploy all manner of malware, crimeware and spyware.  With the ubiquity of browsers.... there are virtually no places on the networked planet that are not vulnerable to that kind of attack.  It would be a really effective way to generate a massive botnet in the wrong hands. However, it would only work for a little while.  Who ever abused this kind of system would probably need to use the system simply to bootstrap a more effective system, such as we have seen with some of the very high level espionage systems recently.  Use the ViolatorWare to open a tiny, onetime backdoor that would probably not be noticed.  Use that to insert a tiny custom backdoor which then piggybacked on some other communication channel to "phone home" to a command and control system.  (The use of twitter is still a bit novel... but you get the idea) basically hide the handshake in some other traffic.
This then allows the exploit to upgrade itself if needed.

Anyway,  this kind of sophisticated attack is probably still out of the hands of most of the crimeware and malware writers.  I would expect to see it become very popular for espionage type attacks as the diversity of extensions and the frequency of updates to them makes it a very "noisy" system that is hard to police, hard to review and hard to notify users when something goes bad.

The perfect target of course is extensions with the "highest" trust and the most complexity.  Things like security tools.  I have been expecting some of these to publicly go bad for a few years.  Either through it being revealed that one of the crime gangs have been producing them right from the start or the whole project has been purchased/highjacked/forked and is now just a front for malware delivery.  This is also going to be a problem for "abandonware" extensions, where someone can "take over" the project and update it using the existing trust model.

The example that comes to mind is the hijack of Sharaza, the filesharing client. This is tangled up in the media industry funded attacks on the P2P file sharing networks so the politics are quite nasty.  The point being that the hijack certainly occured of both the webdomain and the name with a different software product being delivered via the channel which masquraded as the old client and relied on the trust relationship to fool users into installing it.  While that campaign was a straight forward attempt to disrupt and sabotage the file sharing activities using a popular client rather than a determined effort to deliver a malware/crimeware package, I feel that its a forerunner of the ViolatorWare strategy just applied for a different end.  In that case it was much more explicity about violating the trust of the user base to drive them away from the product rather than depending on that trust to exploit an on-going relationship.

Anyway,  my prediction is that we will see more low level violationware show up with clumsy attempts to add a little monitorisation to otherwise popular extensions.  The form this monitorisation takes will be all the usual suspects, advertising in all its forms, data harvesting, criminal penetration via backdoors, botneting etc.  The extent of the abuse of this vector for espionage work will probably not be known for some time, but if I was an anti-virus company, I would start building libraries of all the versions of these extensions that appear so that later on we can re-construct how this kind of incremental violation occured.

Lets just take a moment to look at the platform implications.  Since extensions (at least to browsers) are supposed to run in a sandbox model of some type.. how can violationware do much damage?  Firstly, breaking out of a sandbox is a proven hobby for malware writers.  So, the potential will always be there.  Second, even within the sandbox, the extension can do quite a lot.  Its a programming model, its not hard to build a whole email server or web server in a small amount of code and embed it into a script.  It doesn't need to be powerful or general purpose, it just needs to acheive the programmers ends.  Assume that espionage systems would be able to break out of the sandbox and there is not a whole lot that is not possible once the code is on the target computer.  The point is simply that this type of attack is a different way to "socially engineer" the user to install and more importantly update the package by abusing a trust relationship.

Friday, February 8, 2013

Minesweeper Solver AI with a flawed algorithms.

http://luckytoilet.wordpress.com/2012/12/23/2125/


The above is an interesting article on how to build a minesweeper solver.  There is a good discussion of various algorithmic solutions that can solve everything except the "must guess" states in the game.

The result of the AI in the article is a solver that acheives ~50% win/loss ratio.  Which is effectivly chance.  

It takes about 5seconds to figure out a couple of ways to beat the AI's win ratio using "indirect" strategies. 

1) Only "complete" games that do not result in a "guess" state.
2) Generate a "result" screen without actually playing the games.
3) Throw a tantrum - blue-screen the computer, throw a critical error... whatever the AI equivilent is. This allows the AI to avoid registering a less than optimal win ratio
4) Use the AI to fiddle the number of mines and the board size variables to allow it to increase its win ratio.  (Set the number of mines to 1 and the board size to expert and rack up a huge number of wins...tada)
5) Take a state snapshot of the game, clone the snapshot, play each position until a successful solution is found then move forward with that winning solution. This is a brute force mechanism to acheive a perfect 100% win ratio. 
6) Use the "Replay" function to increse the proportion of games that are won using partial knowledge rather than starting with a fresh board every time.



This in itself is strange.   If we assume that there must be a proportion of games that are solvable without reaching a "must guess" state, then these should be 100% solvable using the AI's methods.  The rest of the games must involve one or more "must guess" situations.  Obviously for a win, each guess is dependant which means that a game involving more than a very small number of guesses becomes improbable for the AI to "win".  If we assume that the proportion of games that do not involve a guess event are fairly fixed ( say 5%) and the games involving guesses are all essentially chance, then we should still get a result of about 55% win ratio.  But like any coin walk, this will only appear with a sufficiently large sample of games.  (Approching infinity?)

So are the games being presented to the AI really random or is there another factor that is hiding this effect?

We can assume that as the number of mines increase relative to the size of the board, the number of "must guess" events required to "win" this kind of game would increase.  So is there a sweet spot with these variables that allows for games with minimum guessing events but still results in a "credible" seeming AI? Probably the easy levels. 

If memory serves there are a fixed number of mines in each of the three pre-set "hardness" levels. (Someone has uninstalled the windows games from my machine image..damit.  Ok, Fixed that)

Beginner has 10 Mines  on a 9x9 grid.
Intermediate has 40 mines on a 16x16 grid
Advanced has 99 mines on a 16x30 grid

As there is no clear way to calculate the probability of a particular number of "Must Guess" configurations occuring at a particular board+mine count ratio. (Well none that spring to mind anyway) I guess we could just do some sampling and develop a bell curve.  (This would require that I could complete a reasonable number of games and see the board layouts, so I could infact count the number of instances of guess events in the process of manually solving each game.  Either that or just get the AI to solve a set of games and get it to count the number of guess events... mmm automation.

Anyway, assume we came up with the probability of guess events for each board size.  This would only give us a sense of what the true win ratio should be over a large enough set of games. 

However the probability of solving the boards will be:

No Guess Event (100%) 1
1 Guess Event  (50%) 0.5
2 Guess Events (50% * 50% )  0.25
3 Guess Events ( 50% * 50% * 50%) 0.125
etc.

Do you notice a pattern?  My point is that if we assume that each of these types of games has an equal probability of being presented to the AI, then we should get the probability of solving any game simply by averaging them together. The average of the above 4 game types is 0.46875... which is below chance. The further we go with the table of possible game types the lower the probable outcome is.  However the fact that the results reported in the article suggest that the AI using the published strategies was still getting a win ratio of about 50% would suggest that the probability of the game type is not distributed evenly. With some simple spreadsheeting,  the distribution turns out to be a simple falloff curve.


Based on the reported win ratio of about 50% I suggest that the games that are being presented to the AI probably involve only a small number of guess events.

However, we are only dealing with the ratio of games that were won.  We cannot really make a conclusion about the games that the AI lost.  They could infact have contained a much larger number of guess events.  The above curve really only shows the ratio of the games that the AI can win, even when its guessing.  This is simply the law of chance stating to bite hard. It doesn't actually tell us what the distribution of guess events is like in the games being presented to the AI.  Inference go suck.... 

Does this give us any useful ways to optimse the strategy?  Is there an angle that we are not trying simply because we want a general solution? Are we simply chasing a white rabbit down the wrong hole?  Can we be the first to beat the law of chance? Bzzzzt. Wrong answer.  There is no way to remove the effect of chance in these games.  The AI must make a guess and the guess will always have a 50/50 chance of being correct. The number of guess events will generally be small (as shown in the graph above) but these are inviolate.  So how do we beat it?  Simply examine your assumptions.

As I proposed above, there are lots of ways to get a better win ratio by out-of-the-box thinking.  Many of these strategies and approches would be considered as "cheating" by humans who are crippled by social ideals of "fair play".  Keep in mind that the only rule given to the AI was to maximise the number of wins, so these are all successful strategies that the programmer has simply failed to implement.  The AI has not been given these tools and certainly was not given a sense of "fair play" through which it might have decided not to employ some of those strategies.  So in conclusion, the only reason that the AI has not got a 100% win ratio, is that the programmer failed to implement any successful strategies to acheive this ratio.  Essentially crippling the AI.

A better AI would have a result that looked like this:


So whats the point?

The point is that the AI is handicapped by the "humanity" of the designer. 







Tuesday, February 5, 2013

FOSS Compensation Mechanisms

http://www.datamation.com/open-source/9-things-that-are-never-admitted-about-open-source-1.html

The above article and associated comments are interesting.  There are plenty of kindling for flamewars contained, but its not those particular aspects that I find my attention drawn to.


Free Software.... System

The arguments about what FOSS is or who runs it or what happened are fun.  The point is that "Something", a system of some form, generates software which happens to have the property of "free"ness.  We have the software artifacts as evidence that this is not just some teenage RPG fantasy.  The fact that this has been happening for some decades suggests that its a systemic process.  At this point I conclude that its worth using the lable "System" to collectivly describe it.  The fact that just about every other heuristic about "systems" is violated somewhere means that its probably not a good term.  Its certainly an informal system that has displayed a wide range of emergent structures and processes. I like emergent systems.  I like seeing how structure forms and fragments within a pool of chaotically swirling components.  I like seeing the effects of context and environment.  Its fun to see small niche opportunities appear, be filled and then fade away as other actors either colonise the niche and exhaust the resources or change the environment and disolve the niche all together.

So is it an Eccosystem?  Lets drill into it a little more.

An Eccosystem is defined by its environmental constraints, resources and actors.

The actors in the Eccosystem are fairly easy to generalise:
* Producers of software
* Consumers of software
* Everyone else on the planet who knows them, sells stuff to them, talks to them, is even remotely connected to them in any distant way etc etc... living or dead.... 

The Environmental constraints are:
* all the computers in the past, present and some way into the future.
* all the users past, present and a bit into the future.
* the legal, social and cultural contexts of the environments for both producers and consumers of software.

The resources within this environment would include:

User (Consumer) Resources
* Time
* Money
* Knowledge
* Need
* Frustration
* Attention
* Interest

Developer (Producer) Resources
* Time
* Money
* Knowledge
* Frustration
* Attention
* Interest
* Resiliance
* etc etc etc

* Communication mechanisms
* Computing Resources (Time, storage, redundancy etc)



There are probably millions of other variables within the system that could be listed.... we can play that game later.  The point, I feel is to move on...

So in an effort to move the thought along... who are the big players in the eccosystem? Same rule as any eccosystem.... look at the most "successful".  Look at the species or groups with the largest numbers, look for those with the longest lifespans, look at the ones with the most resources under their control, look at the ones with the biggest teeth.... pick some quality that you feel is noteworthy and then make a game out of counting it.   When you're done... keep reading.

The point is that measuring "success" in an ecosystem is a game of "Eye of the beholder".  Once you start to look at a system that has millions of variables and millions of actors... keeping score gets hard. Ask a biologist.  Ask any academic. After a while, people develop coping mechanisms to deal with the complexity.  They focus on something they think is valuable and "fixate" on it.  They make up their own scoring system and their own game and play it to the exclusion of everyone else. They fight about their section of the bigger game and generally downplay everyone else's as unimportant. (That's being polite) but at the end of it... its just a coping mechanism to deal with something that is more complex than they can cope with.  Its too big.

Kinda like the "flame wars" and strong opinions that manifest in the software world.

So, in summary, I would suggest that the bulk of the discussions are coping mechanisms and should be respected as such.  One thing I have learned is not to mess with anyone elses coping mechanism... its not like I have something to replace it.

Once we move past the sound and fury of the coping mechanism bullshit storm... we can have an intelligent discussion about the software ecosystem.

First point worth observing is that the software ecosystem is not divisible into FOSS and "other".  It's a single ecosystem where everything is connected.  Many projects exists because of holes in other projects. This symbiotic relationship cannot be decomposed. But the projects can evolve away from each other.

The next point is that even within a sub-set of the ecosystem, such as the FOSS area, the complexity and variability of the people and projects is just too vast to try to clasify with a simple schema.  There must be millions of instances of FOSS software running and, here I am totally guessing, millions of people making choices about FOSS software on a regular basis.  It's just silly to try to argue that anyone has a good handle on what kind of decision making process those people are engaged in.  The variables are exponential, not linear.



Like any good religion, its hard to change anyones mind.... simply because to display a coping mechanism means you are already reacting to the stress of the situation you perceive. You're in the tarpit.  "Helping" someone else will simply pass your tar to them.

I guess the key point, rather than simply rambling on, is that the software ecosystem is, and will continue to be, incredibly complex.  Trying to map it, argue about it or control sections of it, is simply demonstating one's ignorance about just how vast and variable the whole show is.

So whats the future hold?  More of the same probably.  More pointless arguments by people who are freaked out by the complexity of the system that they cannot understand. More chaos, more evolution by projects reacting to "local" conditions without being able to make "big picture" plans.  There are probably very few players who have capacity to make really "big picture" arguments and even fewer who have the capacity to actually act at a high enough level to make any particular impact.  The big platform players might be able to send ripples through the ecosystem but none of them have enough monolithic impact to really drive much.  Microsoft has for years been a big player, big enough to distort the ecosystem around them, but similarly there have been thousands of others of larger and smaller degree who have created sub-ecosystems around themselves.  Tools vendors, hardware platforms, game engines, social platforms, phone makers, tablets, consoles, vehicle systems, retro platforms... etc.  Each one has created niches and relationships that have splashed in the pond and mattered for someone, somewhere.

Take a deep breath people... stop trying to keep score and get on with what is important to you.

Monday, November 12, 2012

Paranoia on the Security Frontier


Just read this article on the issues the American's brains trust are having with suppliers of major network infrastructure components.  The point of view expressed and the stunning hubris... is just so... sad. Basically the article says that the US gov is paranoid about the Chinese gov being able to pop some malware on some backbone switches at some point in the future.... maybe...

Firstly, this article is yet more China bashing.  Although to be fair there is a little bit of acknowledgment that there are other players in the game but none are named or particularly have the finger pointed at...

Secondly,  the fact that American manufacturers are simply assumed to be free of any government influence is just a tad ideologically blind.  Everyone outside the US is paranoid about the US spy services and what they might be inserting into the Internet infrastructure... but that goes without comment.  LOL. 

The silliest bit of all this is the naive assumption that the US spy services are somehow automagically on the side of the average US citizen... hmmmm?? Said who? Is there any evidence to support that point of absolute belief? Hmmm... could be some evidence for both sides of that argument.

Anyway,  as a third party country who gets to buy from both suppliers... we're just a little bit paranoid about both of them. As mentioned in the article.  At the end of the day... there's nothing for it except to do some independant verification of all significant network infrastructure and design networks to be able to identify and withstand the effect of compromised equipment. 

In any case, its often not the designed in back doors that prove the biggest problem, its the exploits that appear from independ players and the side effects of poor network planning that have the biggest problems.  The other problem with backdoors is that you never know who else knows about them.  Since you can bet that the US spy guys will have purchased a couple of these routers and they do have the resources to take them apart and find any useful compromises... that any backdoor that is inplace or could be inserted via patches is able to be compromised by US players just as easily.  Also by every other 3 letter agency in the world... it would then be a fairly simple activity to block each other from using the backdoors while still being able to use them themselves... unless they wanted to let the others think that they did not know about it but still wanted to be able to block them...


I'm sure that in the minds of the politicians it's all scary to think that someone else can reach out and switch off your backbone routers or do bad things with them... but a simple firewall and some physical seperation should prevent that kind of scenario.  Getting some kind of command and control interface to a backbone router should be incredibly difficult via the actual feed line.  They should be controlled via a complely different internal network that is not carried on the public feed.  This provides both physical and logical security. 

This would prevent them being compromised by either some "foreign government types" or by criminal, hacktivists, rogue spy types or other trouble makers.  But like always, it does not prevent them being compromised by the staff of the backbone provider.  As always, people are the weakest link... not the machines. All a spy agency needs to do is compromise one employee and the whole system fails.... but then again, thats what spy agencies have been doing since year 1.

Must be nice to live in a world where all you need to be afraid of is some malware built into a backbone router.  Do you think the US and Chinese spy kids are trying to rev up yet another cold war to keep their budgets?  Most of us are actually worried about non-state players taking down the networks rather than state backed players.  They have much more interest in taping the flow of information than simply trashing the place. 

There are just so many old-school points of view that underpin this whole debate that are no longer relevant.  I have no doubt that every spy agency in the world wants to pwn every backbone switch they can.  They all want unfetted access to every data centre in the world and everyones email, game sessions, chat boards, porn habits, online bank accounts, bot nets..blah blah blah... but the point is that this is a massive fire-hose of data that is simply a monster to try to do anything comprehensive with.  Very few of them have the sort of infrastructure to store, process or make sense of this in a wholistic way, so mostly they will continue to just dip their toes in while they play paranoia games.  The second one or the other gets enough capacity to be able to control a substantial slice of all this action, the whole concept of cyberwar will be declared "won".  Cause just having the ability to "switch off" someone else's network can be implemented much more cheaply than putting some bad malware in everyone elses routers.  This is why the spy agencies still exist and are still able to out-muscle all the small outfists like the hacktivists and criminals, is because they can still mobalise a set of trained and motivated people on the ground to go and "act" upon a foreign govenments network infrastructure if they so wished. All the wanna-be organisations simply do not have the resources to reach out and touch someone in a systematic way.  Just to make it even more difficult, all the backbone providers spend every day attempting to armour and fortifiy their infrastructure against everything the hacker/criminal/vandal set can think of to stuff things up.  Think of this as crowdsourced penetration testing.  The idea that some backdoor could exist that would be exploitable by a foreign government that could withstand this kind of probing is possible... but not probable.

It reads like some sort of bad plot from a really cheesy cold-war thriller... as I ranted somewhere above... its just a bit sad.

 





Friday, October 19, 2012

Exhaustion....

I have decided that the thing that will kill the movie industry is simple inertia.  Changing market dynamics, movie pirates, old school business models, more TV channels, too much Internet, gaming etc... all these are just symptoms and distractions.  The root cause is the incredibly slow pace of production.

The "industry" (and remember its a collection of individuals with no common purpose; so herd or rabble may be a better description) generates a finite number of movies per annum.  Of these, only a certain number will be of interest to any particular group of movie viewers.

Viewers come in two groups, the first is "Indiscriminate Viewers" who will watch anything as the opportunity arises.  The second is "discriminating viewers" who are in some fashion selective in their viewing habits.  These are people who will refuse to watch some movies given the opportunity and further will expend effort to seek out movies that satisfy their interest.

Generally, I would suggest that over time an indiscriminate viewer will move toward being a discriminate viewer; simply though the mechanims of experience.  They find what they enjoy and they seek to maximise that.

So, given that the longer a viewer watches movies, the less (overall) of the annual production they will likely consume.

For instance, a viewer who finds they are a fan of romantic commedy, may seek to see a movie a week (its a figure, don't worry too much about it)  which means they want to see 52 romantic comedies a year.  What do they do if they can't find something to watch?  (Go elsewhere, do something else... probably)  The point is that they cannot point this out to the industry... cause the industry is a figment of the collective rabble.  Keep in mind that romantic comedy is a very well represented genre in the movie back catalog.

In the event that we look at a fan of a smaller genre...say sci-fi thrillers.  Then they may be offered a new release bi-yearly... if that.  How does "the industry" (fictional group... I know) expect to keep that persons attention?  They can keep up with the new releases if they have a move marathon once every decade... yah!
The other thing is that they can work through the existing back catalog of all sci-fi thrillers ever made in a couple of weeks of casual viewing.  Job done.  Genre exhausted.

"The Industry" has simply failed them.  They may go and find something else to entertain themselves... but its random chance if that thing happens to be another genre of movies. Its just as likely to be any other entertainment... sport, games, porn, fine art restoration, busking.... racing goats... whatever.  The odds are against the movie industry getting them back as a paying customer.

My point?  Ok... I think the thing that has spoilt the party is simply access to databases of movies.  Its now possible to search through the genre that you are interested in and tick off all the ones you have seen, all the ones you would like to see and any that you never want to see...and get a survey of the scope of the situation.  There is no longer any mystery.  No hope that there is one out there that will keep you interested and searching.  You can be sure.

I've done this with the Genres that I'm interested in.  I can see the end of my movie watching fast approching.  I have certainty that I'm done!  Now its just maintenance mode.  As new movies come out, I can catch up with them in my own time and tick them off.  In between I can re-watch some of the good ones... but essentially there is not a lot left for me.  I have thoughly checked all the other genres and frankly, they're just not interesting.  Chances are that I am un-representative of the rest of the movie watching population... but as it gets easier and software takes over helping people to organise their media collections... I expect this "ticking off" exercise to be simpler.   The only hope is that there will be some feedback to the industry to give them (collectivly) a better idea of the genres and the frequency of delivery that will hold their audience.


After a lifetime of regular cinema and movie watching.... its a bit sad to see the end of it.  But unless things change, there's really only one movie yet to be released that I am looking forward to and thats it.

TV Series are a different matter.  I think they are filling the space between movies for a lot of the genres.  The problem with TV Series is simply the commitment from a production company is so much greater.  This makes it harder to get niche genre series off the ground.  I wonder what the failure dynamics are with niche series? I wonder if becuase its in a less crowded niche that there is less risk of failure?  Interesting.


I am a bit vauge as to where I was going with this whole post... probably just that the movie industry is too slow to release anything and that access to databases has removed the uncertainty about the movies that are availible. 


Gypsy vs. Farmer Strategy


Farmer Strategy - Pick a location, intensivly husband the area/resources, invest in infrastructure to improve area/resources. Store resources for seasonal lean periods.  Attempt to reduce the cost of resources/harvesting/storing by carefully investing in infrastructure/inventions/other strategies. No limit on size or volume of assets. Currency needs to only be locally valid (Reputation, trust, labour, relationships etc)

Gypsy Strategy - Travel to location, harvest area/resources while resources are cheap and easy to gather, then relocate to new area.  Invest only in what you can carry/move. Any infrastructure must be abandoned, so is a cost. Store nothing but fat. Reduce all wealth to smallest, lightes    items (gold, jewlery?) All currency must be portable. (Money)

Hunter/Gatherer Stategy is somewhere in between.   Some systems worked cyclicly, where the tribe/group moves around between fairly fixed locations based on natural features (Caves, seasonal crops, seasonal animal migrations etc) 

All strategies are successful within a facilitating context the issue's arise when two groups are trying to practice different strategies within the same limited resource pool.

In that case the Gypsy strategy ( assuming there is actually another location to move to - otherwise it would violate one of the assumptions for that strategy), they arrive and try to take all the low hanging fruit.  If the Farmer is already there... then the low hanging fruit is probably a substantive part of their "cash crop".  So, competition in all its glory.  However, in the case where the Famer has already cleared the low hanging fruit, then the Gypsy strategy fails, as they arive in an area that is relativly resource poor for their needs. They have no infrastructure with which to value add what resources they are able to harvest and so will probably move on quickly. Alternatly, they may seek to aquire the resources from any locals, by trade, theft, trickery etc. The final option is to move to the more successful farming strategy... but that has a very slow initial payoff which is unlikely.  Generally, they will probably move on, as the Gypsy strategy has this adaption as one of its base assumptions.  When resources are scarse... move to where resources are rich.

I guess in that respect, the farming strategy also has that assumption... but with a much higher cost-to-move.  I would phrase it as:  when farming is not viable... Pack up what you can transport and move to where farming is viable.  (Then go back and grab anything else thats not nailed down; take a crowbar if it is nailed down)

The conflict between these two strategies has been played out in any number of films and historical scenarios.  There is no obvious "better" strategy in even general scenarios.  Its only under harsh conditions that either or both of these strategies start to fail.

The Farming Strategy will fail when the resources in the local area are depleated to the point where the farmer(s) cannot sustain themselves through a seasonal cycle. (And they are unable to relocate to a suitable location)
The Gypsy strategy will fail when they cannot sustain themselves through the time it takes to move from one location of scarsity to another location of sufficient resources. Obviously being able to aquire resources along the route of travel will extend this time...but the rule still holds.


I have also been thinking about how the two strategies can complement each other. 

In the social context, consider a scenario where a small village is visited by Gypsy's (or traders or whatever name works).  Members of either community can "swap" strategies.  Those who wish to transition to the Farming Stategy can "marry" into the farming community, while those Farmers who have itchy feet can take off with the Gypsys.  As usual there are "people factors" that will probably get in the way, but the concept is essentially symmetrical.   It would be interesting to see how this played out under different scenarios of plentiful and scarse resources.  We would probably see the same sorts of Immigration and Migration that we see in history.  (Also all the issues that derive from scarsity of resources (or the perception of scarsity) such as "The're tak'n our jobs/daughters/houses/etc") The Australian scenario with the "Boat People" is an endlessly depressing example of this kind of social movement and the attitudes that it engenders.

I think the two strategies are probably more likely "complementary" and allow social groups to transition from one area to another in times of hardship.... while settling down and moving into a farming mentality when the location seems worth investing in.  The assumptions for either strategy are complex and probably need to be explored in detail.

* Resources in region
* Accessability and cost of harvest for the resource
* Access to "Other Locations"







Wednesday, October 17, 2012

Apple Tax vs. Dead Engineers

I just read an article on some of the "Apple Tax" arguments surrounding the Samsung vs Apple patent suits.  (Here is the Article)  While I think the article is a pretty good summary of the various strategies that the big tech companies have been employing.  It got me thinking about an alternate universe in which software patents were not legal.

In the patent free universe, there is no legal framework in which to apply pressure to your competitors.  So similar to our world, companies can compete for eyeballs, shelf space, prime product positioning etc via their marketing budgets.  I guess similar to our world... great marketing only gets you so far.  The only real difference would potentially be a mechanism where by one company could saturate the marketing space and thus deny access by the customers to knowledge of the other companies product.  Could work.

The second aspect is product differentiation.  If cloning products were legal, then what strategies could companies use to differentiate themselves?  Either move faster than the other company or retard that companies ability to move fast.  By what means? 

One mechanism, as in our world is to compete for talent.  Hiring the best and brightest is one way to execute the "Move Faster" strategy.  But there are only so many great engineers and like star athletes... soon the pay checks would be idiotic relative to the actual talent.  But... it could happen.  Rock-Star developers and a cult of the cooolest dev.... "Look pretty and code hard"... I can see that on a tee-shirt!

But whats the converse?  Retarding the competitors ability to move fast? .... Well... thats either removing their talent by hireing them away,  removing their ability to be productive (sabotage, industrial espionage, hacking) or in the extreeme case... remove their ability; full stop.  Have I gone too "Cyberpunk" for anyone?


The point I am making is that if the software patent mechanism (as flawed as it seems) was not availible as a forum for the heavyweights to punch it out... then where would all that power go?  The urge to beat each other would still be there... but it would be expressed in other mechanisms.  The marketing war is pretty unconstrained and realistically... does not differentiate the contentders.  They are still bound by a legal and social framework... so they can only exercise one strategy ("Move Faster").  There are very few specific product marketing campaigns (Except in politics) that have successfully used the other strategy ("Prevent the opposition moving fast")There have certainly been a few that dabbled in it... but nothing like the sledging that could go on if it was no-holds-barred.  Generally thats left to the tech reviewers....

So what channel would the endless bitter punchup move into? 

This is like looking at the history of the nation states over the past couple of centuries.  One gets an upper hand, so the others move in and sabotage, kidnap and murder their way around the advantage.  When there is a forum for overt conflict... they go at it hammer and tongs.... when there is not... covert conflict takes over.  At no point is there any lessening of the urge....

So perhaps we should be greatful for the software patent system.  Perhaps channelling their fury into the court room is much less evil than having all those resource channelled into crippling each other in less pleasant ways... like playing hunt the developer. 

You may now break out your best Keanu Reeves impression....




Saturday, October 6, 2012

Social Isolation...

I'm intrigued by the affect of social isolation and loss on social individuals.

How do you model and predict the behaviour of an agent who is defined by their social context and environment when they are removed from it. 

I have been watching some interesting movies and tv shows and have come up with the following groups of scenarios.

1) Foreced removal from society.
 -- Prison
 -- castaway / Marooned
 -- Medical isolation
 -- Disfigurement and social rejection
 -- Mental illness (Its a bit broad...)
 -- Long distance travel (Ship, space craft)
 -- Remote working location

2) Small group isolation
 -- remote working camp/installation, weather stations
 -- Submarines, warships, slow freighters
 -- One way trip to Mars
 --etc

All these scenarios are underpinned by the knowledge that the society still exists somewhere and may or may not be accessible to the agent.  They are also aware that society has not ground to a halt without them... which highlights their insignificance.

The second group is the opposite, where the individual or group knows/suspects/fears that society as they knew it is gone.

3) Post apocalytic
 -- After the plague/ware/virus etc
 -- Alien invasion / Extermination
 -- Time Travellers and Rip van Winkle types.  Also long term Coma patients.

The key part of this scenario is the individual / group knows that its all gone and the context they were familiar with has fragmented.  There will be surviving fragments but there is no overarching "social context".

4) Alternate Society
 -- Cult / Sect / Secret Society etc
 -- Family in foreighn country
 -- Refugees
 -- Gullivers Travels

This is the concept of your micro society being surrounded by an Alien group, who may not wish you harm (or they may) but are trying to consume and suplant your society.  How do you deal with isolation and lack of contact with the familiar.



The question on my mind is just what happens and what drives social creatures once their social context is removed.  How much of them "is lost", how much "remains" and what grows in its place.

How do individuals deal with the big questions when there is no one around to see it happen. 





Thursday, July 5, 2012

Recruiting Strategies

http://www.ewherry.com/2012/06/the-recruiter-honeypot/

This is an interesting and well illustrated article on a honeypot project with a good analysis of the results.  Very nice.

Wednesday, June 13, 2012

Linkedin Cracking strategies

https://community.qualys.com/blogs/securitylabs/2012/06/08/lessons-learned-from-cracking-2-million-linkedin-passwords

This article contains some interesting hints about discovering rules using iterative search techniques. Reading it spured some ideas about discovering social and group rules tha tcould be useful for heuristic based systems.

Wednesday, November 23, 2011

Chaos, randomness and predictability in social engine

http://en.wikipedia.org/wiki/Chaos_theory
http://en.wikipedia.org/wiki/Virtuous_circle_and_vicious_circle
http://en.wikipedia.org/wiki/Cascading_failure

Read these to expand your mind... then read them again.  Some nice summaries.

The point is not about being able to build an emergent and adaptable social engine, the question is what happens when someone "tests" it in ways that we have not anticipated?

What about players with mental illness or filthy minds?  How will the system adapt to them?

What would happen if multiple people are playing the same game session?  Swapping in and out... how would the system adapt to the changes in skill, ability, reaction time etc?

How quickly should the system detect the change in play style and adapt?  Is adaption one way?  Should the system remember previous adaption states?

What happens when a player puts the game down... then returns to it at a later date when they have lost their edge?  (Ok, I know the answer to this one, I'm just including the question here for completeness)


Some answers
As for testing the system (find a reference to players torturing "Creatures" and the whole spiel on "killable children in games").  The point is that people play games for more reasons than are easily guessed.  Out on the fringes of the bell curve things get really... unexpected.

Ethically, do game designers have the right to impose their morals and values on the players?  Alternately, do game designers exist in a moral vacuum? ( ...mmm No.) They are answerable, often very publicly for their choices in many ways.  So for practical purposes, Game developers and through them designers etc need to be careful with their choices.

By extension, developing libraries that deal with sensitive topics like social issues need to exercise some responsibility.  There are things that should and should not be exposed as "options" for players to manipulate.

Issues surrounding equality, diversity, age appropriate material, right and wrong etc all need to be respected.

Its easy to visualise ways to missuse a social system for fun and novelty of a fratboy humor level... but once you move into the realms of socially objectionably scenarios and worse... the repercussions could be extreem.

 The question is how to design a system that can support a broad range of structures and magically prevent missuses?  Its a toolkit specifically intended to be able to model any social scenarios... which cuts all the way across the ethical spectrum.  Kind of diametrically opposed objectives, one would suggest.


Monday, November 14, 2011

Microsoft WP7 Jailbreak solution

http://arstechnica.com/microsoft/news/2011/11/why-microsoft-authorized-a-9-windows-phone-jailbreak.ars

More on phone market place strategies.  This article looks at the Microsoft solution for people who want to  jailbreak their phones.

I think this is probably going to be useful for enterprise solutions on the platform as the marketplace model is horrible for central management of enterprise smartphones.


Thursday, November 10, 2011

Types of Zombie and the related strategies

I have been thinking about various strategies that would violate the Zombie appocalyse concept. (Which for all the deep ethical dilemas and fun post appocalyptic narratives can also be a useful analogy for many disaster planning scenarios)  I think it all comes down to the nature of the Zombies.

If you look at some of the recent zombie flicks there are quite distinct species. 

21 days has the so called "Rage" virus.  The sufferes get infected and go apeshit on everyone else.  The key points are the same, they are "Unstoppable", mindlessly focused and fast.  They have good sight and hearing and display cunning and intelligence.

Contrast this with the Zombie plague in "The Walking Dead". The "Walkers" are generally slow and mostly brainless. Some display rudamentary problem solving (which I think is out of character), some display basic tool use, but generally they are just slow, methodical and persistent with a hunger for man flesh. 

So whats the difference?  Well in scenario one, they tend to move in packs and as I mentioned above, are fast.  The best strategy for this kind of problem neghbour is then something that can deal with fast but direct assults. This would be something like a rabbit run.  Put out someone to be bait... run them into a safe spot and lead the Zombies into a trap that they do not have the capacity to avoid.  Cattle race, mine field, crusher etc. 

In the second scenario ( even though they act out of character every so often) the Zombies are generally slow and uncoordinated.  Simply attract them with noise and motion, confine them and then pick them off with a mechanical system like a crusher or blade.  The biggest problem is to dispose of the mess safley.

The point is that in both cases the problem is very predictable.  A fairly rigid strategy can be developed, with some backups to deal with scaling problems (such as when you get the "over run" scenario. ) simply retreat to safe vehicles, drive around the block until the Zombies disperse then return to the trap and keep on working. Fairly straight forward. This turns the Zombies into a nusance more than a plague.


The origional Day of the Triffids is an interesting variation in that there are multiple layers to the disaster, first in the mass blinding event, then the collapse of the social systems, then the escape of the triffids, then finally plague amoung the survivors.  While this added more dimension to the narrative, the actual triffids themselves were fairly straight forward Zombies.  Flessh eating, creeps up when the camera is not looking, etc.  But again they were quite predictable.  They are a preditor that is not fast, so it works from ambush.  But they are attracted to sound again.  In the book they even talk about building sound based traps and destroying large groups of triffids. The problem is that as the triffids are plants, they can seed a huge population and replenish their numbers.  This sets them apart from the more regular Zombie model where a person has to "turn".  This adds to the horror dimension of the betrayal and the fear but also acts as a limiting factor on the possible population of Zombies.

Especially the rate at which the population of Zombies in an area can "recover" if they are destroyed.  Once all the "easy" victims have been turned to Zombie and then destroyed, there are only the luck and "wise" that remain to replenish the population. They are more dispersed, harder to "turn" and much faster to destroy any turned members of their parties, so the rate of replenishment of your average Zombie hord is probably fairly minimal.  Essentially, as long as the Zombies actually break down and physcially collapse, you would expect the average Zombie plage to barely exceed a month.  Especially the speed at which the flies would go to work.  The only chance of a good Zombie hord getting going would be in th colder months in Austalia as the flies would get in and strip the corpses in a matter of days.  The Zombies would physically fall to bits before they had a chance to travel far or "turn" too many others.

In colder countries the Zombies would probably last longer... but they would still have a high failure rate just through wear and tear.

Anyway, the point being that a fixed plague with known transmission method and carriers can be dealt with. Usually the biggest problem is the "people factors" in the narratives where people are not willing to "do what has to be done" and get over run.  I think this is mostly for dramatic purpose, as evidence from many of the recent disasters illustates that people generally are pretty fast to "do what needs to be done".  Its more a question of consequences. In a severe weather situation, they know that the day after will probably bring law enforcement... so some of the more anti-social choices that some narratives suggest are still not attactive.  

As always, the key is speed of adaption, surviving the event itself is just chance, but adapting to the new environment after the event is usually about "the quick and the dead".  Observe, test, adapt, survive.

Wednesday, November 9, 2011

Strategies in Agile dev processes

http://pragprog.com/magazines/2011-11/selfinflicted-scope-creep

There are some fun strategies discussed in here... kind of state the obvious but anyway.  The best bit is where the article starts by pointing out the flawed ideas ... then later goes on to say they are ok ... when they are appropriate.... kinda "drugs are bad...mmmk except when you need drugs".  Anyway, focus on the strategies and the people factors...

Anti Malware Strategies

http://blog.wilshipley.com/2011/11/real-security-in-mac-os-x-requires.html

Some interesting arguments about various strategies that Apple could should would apply to deal with malware on their platform(s).

Here is another article on the sandbox pros and cons.


http://lacquer.fi/pauli/blog/2011/11/why-the-mac-app-sandbox-makes-me-sad/

Tuesday, November 8, 2011

Scareware strategies

http://www.wired.com/magazine/2011/09/mf_scareware/

Article on scareware business. Not a lot of details but some interesting fragments.

Monday, November 7, 2011

Adware strategies

http://philosecurity.org/2009/01/12/interview-with-an-adware-author

There are some ethical issues here, strategy information and some interesting comments.  Your opinion of the subject of the post may range from repulsion to disgust to acceptance.  My firstly thought is... realist meets ambiguous opportunity...

Editors + Content Creators = Quality?

http://sparksheet.com/return-of-the-editor-why-human-filters-are-the-future-of-the-web/

This article is interesting and makes a good point. The same point that is being made in academic circles, that peer review and editorial selection is the only way to separate the wheat from the chaff.  Without peer review and examination by the community, it becomes increasingly difficult to stay relevant and in touch, let along maintain "accepted" standards of presentation and language.

The contrary argument that always gets trotted out is that this prevents "new" or radical ideas as they tend to be suppressed (overtly or covertly) by "established" ideas.  While I think this is a danger, its true in any system that contains "vested interests" or "assumptions".  Revolutionary change (great strides) is difficult for any system that is geared toward  evolutionary (many small steps) change.  This is more a factor of the mechanism of the system than the desire or intent of any one person within the system.

So what about algorithmic quality filters? Do they allow or reject revolutionary content?  My guess would be ... it depends! An algorithm is a reflection of the programer(s) who created it. This usually means that it carries all their assumptions and flaws.  More simply put, is the algorithm essentially a black list or white list model.  Algorithms that are smart enough to do semantic analysis are just not yet feasible on the large scale, but hopefully they will be making an entrance soon and go some way to solving this type of problem.

Wednesday, September 28, 2011

Personal Data Stores

Found an interesting list of projects in the personal data store/identity space.

http://owncloud.org/

http://unhosted.org/

http://lockerproject.org/


http://projectdanube.org/
Lots of good ideas here. Well written docs.

https://joindiaspora.com/
This one looks a little raw at the moment but the idea is good.

http://personaldataecosystem.org/
Kind of overview organisation. In a decentralized, disorganized ecosystem...

http://www.idcommons.net/
Interesting group....

http://cyber.law.harvard.edu/research/projectvrm
Project VRM.  Another interesting idea....